无法使用带有python 3.8的conda安装tensorflow

新手上路,请多包涵

最近,我升级到使用python 3.8的Anaconda3 2020.07。 anaconda 以前的版本,tensorflow 安装成功。 Tensorflow在此版本安装失败。

我运行了下面的命令;

 conda install tensorflow-gpu

我收到的错误消息如下所示;

 UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - tensorflow-gpu -> python[version='3.5.*|3.6.*|3.7.*|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0|>=2.7,<2.8.0a0']

Your python: python=3.8

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with your CUDA driver:

  - feature:/win-64::__cuda==11.0=0

Your installed CUDA driver is: 11.0

是否有带有正确参数的 conda 命令来成功安装 tensorflow?

原文由 guagay_wk 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 1k
2 个回答

在 anaconda 上安装 tensorflow 的最新进展。

https://anaconda.org/anaconda/tensorflow https://anaconda.org/anaconda/tensorflow-gpu

9 天前,Anaconda 上传了一个新的 tensorflow v2.3 包。 Anaconda3 2020.07(使用python v3.8)用户可以通过以下命令轻松升级到tensorflow v2.3;

 conda install -c anaconda tensorflow
conda install -c anaconda tensorflow-gpu

我亲自测试过安装成功。

这个问题的其他答案现在已经过时了。

原文由 guagay_wk 发布,翻译遵循 CC BY-SA 4.0 许可协议

更新:

TF 现在与 Python 3.8 兼容


Tensorflow 与 Python 3.8 不兼容。请参阅 https://www.tensorflow.org/install/pip

你需要降级你的 python 版本:

 conda install python=3.7

原文由 Kh4zit 发布,翻译遵循 CC BY-SA 4.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进