Running pip reported an error: Fatal error in launcher: Unable to create process using '"'

When I installed python on the new environment, I encountered this situation again. This time I paid attention to it and found that there were errors in the original article, so let’s update it and it should solve most of the problems.

 

The environment is win8, and only python2.7 was installed. Later, because python3 was used, in order to allow the two to coexist, the running file of python3 was changed to python3.exe. This is the problem. At this time, pip running python3 will encounter the following errors

Fatal error in launcher: Unable to create process using '"

But running pip2 is fine. If you change the running file of python2.7 to Python2.exe at this time, you will find that pip2 also throws a general error. It can be concluded that this error is caused by changing the name of the python executable file.

I have seen many solutions on the Internet, saying that running python3 -m pip install --upgrade pip directly is enough to upgrade the pip version, which is useful in most cases. Because after reinstallation, the association will be created according to the changed python execution file. But it won't work if your pip is already the latest version, because the latest version won't let you upgrade at all. Then use the following command to force reinstall pip

python3  -m pip install --upgrade --force-reinstall pip

 

So far, the error of pip has been solved.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325069637&siteId=291194637