执行:
pip install tensorflow
出现问题:
Cannot uninstall 'numpy'. 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.
问题原因:已经存在numpy版本,但是版本太低,tensorflow需要更新的版本
解决方案:
sudo pip install numpy --ignore-installed numpy
更新到最新的版本,就解决了问题。
本文介绍了在使用pip安装TensorFlow过程中遇到的无法卸载旧版numpy的问题及其解决办法。问题出现的原因在于现有numpy版本过低,不兼容TensorFlow的需求。通过使用sudo pip install numpy --ignore-installed numpy命令将numpy更新至最新版本即可解决问题。
1663

被折叠的 条评论
为什么被折叠?



