windows下python3与python2共存

一、安装python3与python2

下载地址:https://www.python.org/downloads/windows/
windows下python3与python2共存
(安装过程略)

二、设置国内源

在个人用户文件夹下新建pip文件夹和pip.ini文件,内容如下

[global]
index-url=http://mirrors.aliyun.com/pypi/simple
[install]
trusted-host=mirrors.aliyun.com
disable-pip-version-check=true
timeout=6000

windows下python3与python2共存

三、将python2可执行文件改名

windows下python3与python2共存

四、设置环境变量

windows下python3与python2共存

五、测试

windows下python3与python2共存

六、python3和python2下pip包安装方法

python -m pip install package_name
python2 -m pip2 install packages_name
上一篇:npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: want


下一篇:eosjs