最近,我升级到了 Anaconda3 2020.07,它使用 python 3.8。在以前版本的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?
UPDATE:
TF 现在与 Python 3.8 兼容
Tensorflow 与 Python 3.8 不兼容。看https://www.tensorflow.org/install/pip https://www.tensorflow.org/install/pip
您需要降级您的 python 版本:
conda install python=3.7
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)