1、下载python3和python2 (先安装3)

2、python2 安装后版本检测
↓下面是截图

其他使用python的地方需要重新导入:比如手机自动化,如下图:

3、pip区分
Python 安装包需要用到包管理工具pip,但是当同时安装python2和python3的时候,pip只是其中一个版本,以下将提供一个修改方式,即重新安装python2版本的pip为pip2 (python3保持不变)
1)在DOS命令框输入命令,python2 -m pip install --upgrade pip --force-reinstall,显示重新安装成功

2)现在可以通过pip2 -V 和 pip -V 查看两个版本的pip信息


网友评论