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
.
CodePudding user response:
As the error says and @Willem Van Onsem said, python 2.7 is no longer support, you can't install it nowadays
CodePudding user response:
You update your pyhon and also pip ....
If you are switching between two major releases, for example 2.7.x to 3.3.x: Keep them side by side. They will be installed in different directories, named after their version. Have your PATH variable point to the older version and link the shortcut to newer version (python.exe in installation folder). If you are switching between two minor releases, just install one over the other. Download latest version from their website and run it. It will remove the previous version and update automatically. You can also install a major release over a minor release without keeping it, just make sure your path variable is pointing to the right thing. I started pretty late, so I have been using version 3.x from the start.
Oh, and do look at the changes they made moving from 2.7.x to 3.3.x, you might wanna work with both.
More information can be found here: How to update Python?
if your just updating pip, the install library, that’s a different matter that can be done by:
python -m pip install --upgrade pip
its my experience that the people who programmed the IDE know more about its function than you and thus, just let them control the install process (through the installer).