Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to downgrade the installed version of 'pip' on windows?

Tags:

python

windows

On a windows 7 machine I have pip version 1.5.6 installed:

pip 1.5.6 from C:\Users\dietz\PNC\tas\ENV\lib\site-packages (python 2.7) 

In order to find the reason for an error I want to install a different version of pip, which worked fine for me. So how can I uninstall pip and install version 1.2.1 instead?

like image 437
Alex Avatar asked Jul 16 '14 05:07

Alex


People also ask

How do I install an old version of pip?

Two Steps to Install Specific Version of a Package with Pip: 1) Install virtualenv and create an environment. 2) Install the Specific Version you Need with Pip.

How do I downgrade Python version from pip?

Use a Virtual Environment to Downgrade Python on Windows To create a virtual environment, we can use the command pip install virtualenv on the command prompt. We need to download the required version from the official website. After this, we need to execute virtualenv \pathof\the\env -p \pathof\the\python_install.exe .

How do I uninstall the latest version of pip?

Open a command or terminal window (depending on the operating system) cd into the project directory. pip uninstall <packagename>


2 Answers

pip itself is just a normal python package. Thus you can install pip with pip.

Of cource, you don't want to affect the system's pip, install it inside a virtualenv.

pip install pip==1.2.1 
like image 145
Leonardo.Z Avatar answered Sep 22 '22 02:09

Leonardo.Z


If downgrading from pip version 10 because of PyCharm manage.py or other python errors:

python -m pip install pip==9.0.1 
like image 24
Maziyar Mk Avatar answered Sep 20 '22 02:09

Maziyar Mk