I have created a virtualenv and want to install python v.3.8.7 using either pip or easy_install tools without affecting the python version installed on the system which Python 2.7.
I tried using:
pip install python3 --upgrade #in the virtual environment
But the error states that I need to upgrade Python 2.8 which is the main Python used on my machine (not the virtualenv)
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
ERROR: Could not find a version that satisfies the requirement python3 (from versions: none)
ERROR: No matching distribution found for python3
python -m pip3 install --upgrade pip
I tried to upgrade pip only on virualenv: but same error:
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Requirement already up-to-date: pip in ./lib/python2.7/site-packages (20.3.4)
How to install Python 3.8.7 in a virtual environment using either pip or easy_install ?
8
I think the python3.8.7 is not installed in your system? I mean the python file install in their website, not the pip install in your env.
You may visit https://www.python.org/downloads/release/python-387/
Zhiwei is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1