Fatal error in launcher: Unable to create process using C:\xx\python.exe D:\xx\Scripts\pip.exe

报错原因

我从另一台电脑下载的python拷贝过来,在使用pip命令时提示该错误信息

解决办法

1. 进入python\Lib\site-packages目录,删除 pip-20.1.1.dist-info

Fatal error in launcher: Unable to create process using C:\xx\python.exe D:\xx\Scripts\pip.exe

2. 然后在python\Scripts目录下删除pip.exe

Fatal error in launcher: Unable to create process using C:\xx\python.exe D:\xx\Scripts\pip.exe

3. 执行 python -m pip install --upgrade pip

Fatal error in launcher: Unable to create process using C:\xx\python.exe D:\xx\Scripts\pip.exe