In the process of configuring tensorflow, the direct encounter when installing gpu version pip by this error,
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:
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.