pip install: Can not uninstall '' It is a distutils installed project and thus we can not accurately .... solution.

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_40605167/article/details/102764651

In the process of configuring tensorflow, the direct encounter when installing gpu version pip by this error,
Here Insert Picture Description
check a long time to find a solution, eventually worked out a solution is as follows:
error I encountered:

Cannot uninstall ‘wrapt’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

Solution:
find wrapt.egg-info, generally in usr / lib / python2.7 or other installation pythonxxx dist-packages and other path, if there is anaconda words. Path is as follows:
Here Insert Picture Description
can also be in the / directory under the direct global search. Then it can be deleted.
Other package also common method such cases, the search .egg-info, after finding deleted.

Guess you like

Origin blog.csdn.net/qq_40605167/article/details/102764651