python 2 与 python 3 的pip 区分问题

来源:互联网 发布:java web静态资源分离 编辑:程序博客网 时间:2024/06/04 21:08

python27 python.exe 修改为python2.exe
pythonw.exe 修改为 pythonw2.exe

python35 python.exe 修改为python3.exe
pythonw.exe 修改为 pythonw3.exe

安装两个版本时,使用pip会出现报错:Fatal error in launcher: Unable to create process using ‘”’

在其他博客上找到的:
使用 python2 -m pip install -U pip 升级了2.7版本的pip
再使用 python3 -m pip install -U pip 对3.5版本pip进行升级

刚开始问题解决,但是后面就不行了,还会出现报错:Fatal error in launcher: Unable to create process using ‘”’

当使用pip 时采用如下代码:

python2 -m pip install 包名称/本地包路径
python3 -m pip install 包名称/本地包路径

如图:

这里写图片描述

问题解决