我早些时候(几个月前)从这个Stackoverflow中得到了相同问题的解决方案,但我忘记了。
解决方案应该是这样的:从GitHub下载wrapt包,并将其放在c: drive \ user profile location \wrapt中。
在安装tensorflow包时,wrapt会阻碍它
pip install tensorflow安装tensorflow时出错
Installing collected packages: wrapt, tensorflow Found existing installation: wrapt 1.10.11 ERROR: 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.
发布于 2019-08-07 02:28:05
在您的情况下,您可以卸载并重新安装wrap,也可以简单地升级。
首先卸载wrapt:
pip uninstall wrapt然后重新安装:
pip install wrapt或者简单地(这样你就不需要安装和卸载了):
pip install wrapt --upgrade --ignore-installed然后:
pip install tensorflow发布于 2019-10-05 02:46:14
使用更新wrapt
pip install wrapt --upgrade --ignore-installed(我使用pip3 )
pip3 install wrapt --upgrade --ignore-installed在安装包之前,"tensorflow“或"tensorflow-gpu”为我解决了这个问题。
https://stackoverflow.com/questions/57381023
复制相似问题