在Anaconda Navigator上安装Tensorflow-gpu

时间:2019-04-14 09:09:51

标签: tensorflow anaconda

我尝试使用this link.安装tensorflow-gpu!

我的Anaconda Navigator版本是4.2.0。 根据链接,我首先安装了CUDA 9.0,然后在命令提示符下运行了此代码:

pip install tf-nightly-gpu

运行此命令导致一个错误。 Error when trying to run the above line of code.

Cannot uninstall 'Werkzeug'. 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.

如何克服此错误?根据链接,该错误应该是由于缺少CuDNN驱动程序造成的,因此我可以继续安装正确的cuDNN版本。但是我想没有这样的错误。

但是我希望也许已经安装了tensorflow,所以我尝试将其导入到spyder和jupyter笔记本中,但是在两种情况下,内核都快死了。然后我检查了conda列表和pip列表,它安装了tensorboard 1.12.2版本,但没有安装tensorflow。我不确定是否已安装tensorboard或尝试安装tensorflow-gpu之后。
pip list
conda list

然后,当我尝试导入tensorflow时,为什么不抛出错误,而是内核死了?我还安装了CuDNN 7.0.5,但是仍然在尝试导入tensorflow时,内核不断崩溃,现在仍然可能安装了tensorflow。请帮忙。
Kernel dying when trying to import tensorflow on spyder.

我认为我已经安装了正确版本的CUDA和CuDNN,但是由于上面提到的错误,仍未安装tensorflow。请帮助我克服它。内核递归死亡的原因是什么?

请帮助!

0 个答案:

没有答案
相关问题