I have python 2.7 installed on my machine globally and the pip version is pip 20.3.4. I want to install Django version 1.11.22. When I am trying to do so with pip install Django==1.11.22
, I am getting the error as mentioned in the picture. This is not just while installing Django, I am getting the same error while installing anything like pip install openpyxl
.
The latest version Python 2.7.18 should work fine. Install it with pip enabled or install pip after using python -m ensurepip
. Upgrade pip:
pip install --upgrade "pip<21.0" "setuptools<45"
Install virtualenv:
pip install --upgrade "virtualenv<20"
Create a virtual environment (very much recommended) somewhere and activate it:
virtualenv django-venv
django-venv\Scripts\activate.
Install Django (can be done without a virtual environment):
pip install --upgrade "Django==1.11.22".
Remember to activate the virtual environment (if you use it) every time you open a new terminal.