1. 安装python3
2. 安装python2:
3. 加入环境变量:
path\python\3.7.0;
patt\python\3.7.0\Scripts;
path\python\2.7.12;
patt\python\2.7.12\Scripts;
4. cd python3
mv python.exe python3.exe
cd python2
mv python.exe python2.exe
win+R => cmd => python3; python2
5. install pip3 [cmd]:
# 安装失败尝试[Exception:]: python3 -m ensurepip
python3 -m pip install --upgrade pip --force-reinstall
pip3 -V
install pip2 [cmd]:
# 安装失败尝试[Exception:]: python2 -m ensurepip
python2 -m pip install --upgrade pip --force-reinstall
pip2 -V
6. python2 pip upgrade failed
下载解压 pip-9.0.1.tar.gz
cmd进入path\pip-9.0.1
python2 setup.py build
python2 setup.py install
pip2 -V
pip 9.0.1 from ...
[DONE]