Pip install – Python 2.7 – Windows 7

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:

  1. Open Powershell as admin. (win+x then a)
  2. Type python -m pip install <package>.

If python is not in PATH, itll 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:

  1. Open cmd as admin. (win+x then a)
  2. Go to scripts folder: C:Python27Scripts
  3. Type pip install package name .

Note: Else reinstall python: https://www.python.org/downloads/

[1] Also note: You must be in C:Python27Scripts in order to use pip command, Else add it to your path by typing:
[Environment]::SetEnvironmentVariable(Path,$env:Path;C:Python27;C:Python27Scripts, 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>

Pip install – Python 2.7 – Windows 7

This is one way of installing pip on a Windows system.

  1. Download the get-pip python script from here: https://bootstrap.pypa.io/get-pip.py

  2. Save the file as getpip.py

  3. Run it from cmd: python getpip.py install

Leave a Reply

Your email address will not be published. Required fields are marked *