Installation python2 and python3 under windwos environment

A python installation

download link: https://www.python.org/downloads/

Environment variables: Path addedC:\Python27\Scripts\;C:\Python27\; C:\Python36\Scripts\;C:\Python36\;

Modify the file name: the C: \ python.exe under Python27 directory and pythonw.exe changed python2.exe and pythonw2.exe (python3 empathy modification)

Two pip install

In cmd execution:

python3 python2
python3 -m pip install --upgrade pip --force-reinstall python2 -m pip install --upgrade pip --force-reinstall

Guess you like

Origin www.cnblogs.com/xintiao9/p/10944433.html