简体   繁体   中英

installing pip on python2.7.5 and the old version issue

I want to make some change on a code which has been developed with python2.7.5 so I should use Python 2.7.5. But when I'm installing pip on python2.7.5, face this error. I have downloaded get-pip.py and ran it through cmd here is the 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. enter image description here does it mean we can not use Python2 anymore??

It is possible to use python 3 but you should convert your python 2 code using 2to3 package. To do this you can install 2to3 using pip in python 3. Open command prompt and use this command: pip install 2to3 You should install pip in advance. Good luck!

try using python 2.7.12 or upper and you can run all python codes in python2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM