pip Fatal error in launcher: Unable to create process using

简介: 接上篇“Eclipse启动报错:JVM terminated. Exit code=2”,今天把Python的安装位置也从C盘剪切到了D盘,然后修改了Path环境变量中对应的盘符:D:\Python27\;D:\Python27\Scripts;不管是在哪个目录,Python可以执行了,但是...

接上篇“Eclipse启动报错:JVM terminated. Exit code=2”,今天把Python的安装位置也从C盘剪切到了D盘,

然后修改了Path环境变量中对应的盘符:D:\Python27\;D:\Python27\Scripts;

不管是在哪个目录,Python可以执行了,但是执行Pip的时候就出错了!

D:\Python27\Scripts>pip
Fatal error in launcher: Unable to create process using '"C:\Python27\python.exe
"  "D:\Python27\Scripts\pip.exe" '


Path环境变量已经改了,它居然还是去找C盘的位置,我就感觉很奇怪了。

尝试使用“python pip.exe install”是可以的,但是又觉得这样用比较麻烦,还是希望把它搞清楚!又不希望重新安装!

在网上搜索“pip从什么位置读取python的安装目录”无果,就搜索错误信息,还真找到了!

有网友在cmd下执行“python -m pip install --upgrade pip”解决了问题,我这却不行。


哦哦,我没有加“-m”参数。

我采用的解决方法比较野蛮野蛮野蛮一点,是使用二进制文件编辑工具修改“pip.exe”,

参考:http://stackoverflow.com/questions/24627525/fatal-error-in-launcher-unable-to-create-process-using-c-program-files-x86

使用HEdit打开,然后搜索“C:\”,找到对应的位置,然后把盘符修改成“D”,保存,再执行"pip"命令就OK了。


“D:\Python27\Scripts”目录下有多个文件都存在这样的情况,顺手都改了吧。

======================文档信息======================
版权声明:非商用自由转载-保持署名-注明出处
署名(BY) :testcs_dn(微wx笑)
文章出处:[无知人生,记录点滴](http://blog.csdn.net/testcs_dn)

目录
相关文章
|
7月前
pip install -U weditor 安装报错 error: subprocess-exited-with-error
pip install -U weditor 安装报错 error: subprocess-exited-with-error
347 0
|
3月前
|
缓存 Python
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-npf9报错
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-npf9报错
|
5月前
|
开发者 Python
【Python】已解决:(Python3中pip无法安装urllib报错问题) ERROR: Could not find a version that satisfies the requireme
【Python】已解决:(Python3中pip无法安装urllib报错问题) ERROR: Could not find a version that satisfies the requireme
322 0
【Python】已解决:(Python3中pip无法安装urllib报错问题) ERROR: Could not find a version that satisfies the requireme
|
5月前
|
安全 网络安全 Python
【Python】已解决:(pip安装库报错)ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访
【Python】已解决:(pip安装库报错)ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访
162 0
|
5月前
|
API 计算机视觉 开发者
【Python】已解决:(pip安装PIL库报错) ERROR: Could not find a version that satisfies the requirement PIL (from v
【Python】已解决:(pip安装PIL库报错) ERROR: Could not find a version that satisfies the requirement PIL (from v
390 0
|
5月前
|
Shell Linux 网络安全
【Python】已完美解决:(pip提示升级)WARNING: There was an error checking the latest version of pip.,
【Python】已完美解决:(pip提示升级)WARNING: There was an error checking the latest version of pip.,
572 0
|
7月前
|
Python
百度搜索:蓝易云【Debian pip 错误 error: externally-managed-environment 解决方法】
通过上述方法,你应该能够解决 "error: externally-managed-environment" 错误并成功使用 pip 安装包。
695 0
【Python学习笔记】pip安装reportlab包时报错:fatal error LNK1158: cannot run ‘rc.exe‘
【Python学习笔记】pip安装reportlab包时报错:fatal error LNK1158: cannot run ‘rc.exe‘
【报错解决】ERROR: pip‘s dependency resolver does not currently take into account all the packages
【报错解决】ERROR: pip‘s dependency resolver does not currently take into account all the packages
2826 0

热门文章

最新文章