Anaconda使用pip出错 Fatal error in launcher: Unable to create process using

因为之前重装系统,然后新系统使用的Anaconda的环境,然后为了方便,直接把以前的Python环境的包复制到Anaconda里面,然后使用pip就报错!

Fatal error in launcher: Unable to create process using '"D:\Python388\python.exe" "D:\app\Anaconda3\envs\py38\Scripts\pip.exe" install requests': ???????????

然后我就在网上找了其他的解决办法,都是使用二进制改pip,所以我觉得这样容易损坏文件,所以我没一下子就去试,觉得自己试试别的方法!

然后我就根据报错打开D:\app\Anaconda3\envs\py38\Scripts\ 目录

Anaconda使用pip出错 Fatal error in launcher: Unable to create process using_第1张图片

发现在目录下pip有四个,还是不同的,所以我就想会不会是因为pip冲突了,我就把第一个pip.exe,改成pip1.exe【因为只是尝试,不敢删,怕不是就只改了名字】,然后再重新使用

pip install requests

结果可以使用了

C:\Users\hsx>pip install requests
Requirement already satisfied: requests in d:\app\anaconda3\lib\site-packages (2.26.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\app\anaconda3\lib\site-packages (from requests) (1.26.7)
Requirement already satisfied: certifi>=2017.4.17 in d:\app\anaconda3\lib\site-packages (from requests) (2021.10.8)
Requirement already satisfied: idna<4,>=2.5 in d:\app\anaconda3\lib\site-packages (from requests) (3.2)
Requirement already satisfied: charset-normalizer~=2.0.0 in d:\app\anaconda3\lib\site-packages (from requests) (2.0.4)


 

你可能感兴趣的:(新手学习笔记,django,python,后端,学习)