Pip install - Python 2.7 - Windows 7
For New versions
Older versions of python may not have pip installed and get-pip will throw errors. Please update your python (2.7.15 as of Aug 12, 2018).
All current versions have an option to install pip and add it to the path.
Steps:
- Open
Powershell
as admin. (win+x
thena
) - Type
python -m pip install <package>
.
If python is not in PATH, it'll throw an error saying unrecognized cmd. To fix, simply add it to the path as mentioned below[1].
[OLD Answer]
Python 2.7 must be having pip pre-installed.
Try installing your package by:
- Open cmd as admin. (
win+x
thena
) - Go to scripts folder:
C:\Python27\Scripts
- Type
pip install "package name"
.
Note: Else reinstall python: https://www.python.org/downloads/
[1] Also note: You must be in C:\Python27\Scripts
in order to use pip command, Else add it to your path by typing:
[Environment]::SetEnvironmentVariable("Path","$env:Path;C:\Python27\;C:\Python27\Scripts\", "User")
Download pip script from https://bootstrap.pypa.io/get-pip.py and then run using python as:-
python get-pip.py
or you can use python to install modules directly
python -m pip install <module>