python2 3 共存

Posted 工大只有一个阿锤

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python2 3 共存相关的知识,希望对你有一定的参考价值。

分别安装 2,3

修改python.exe名为 python2.exe python3.exe
修改pip-script.py 文件第一行 (保证pip可以正常工作)

python -m pip install --upgrade pip pip更新

python2 -m pip xxx python2的pip

python3 -m pip xxx python3的pip


以上是关于python2 3 共存的主要内容,如果未能解决你的问题,请参考以下文章