pip报错:Fatal error in launcher: Unable to create process using ‘“‘
因为系统安装了多套Python环境,为了让两者共存,于是将python3的运行文件改为python.exe,将之前的python2改为了python2.exe,结果在运行pip的时候发现报错了。pip报错如下:C:\Users\wuye>pip listFatal error in launcher: Unable to create process using '"c:\python27\
因为系统安装了多套Python环境,为了让两者共存,于是将python3的运行文件改为python.exe,将之前的python2改为了python2.exe,结果在运行pip的时候发现报错了。
pip报错如下:
C:\Users\wuye>pip list
Fatal error in launcher: Unable to create process using '"c:\python27\python.exe" "C:\Python27\Scripts\pip.exe" list': ???????????
C:\Users\wuye>pip3 list
Fatal error in launcher: Unable to create process using '"c:\python38\python3.exe" "C:\Python38\Scripts\pip3.exe" list': ???????????
查找网上资料,答案大多是运行以下命令,来重新创建python文件和pip的关联:
python -m pip install --upgrade pip
python2 -m pip install --upgrade pip
结果我这里提示pip版本已经是最新的,这种情况的话,其实只需要强制重装pip即可,命令如下:
python -m pip install --upgrade --force-reinstall pip
python2 -m pip install --upgrade --force-reinstall pip
如果网速太慢,可以在后面加上国内的源:-i https://mirrors.aliyun.com/pypi/simple/
更多推荐
所有评论(0)