无法在python 3.8中使用conda安装tensorflow [英] Unable to install tensorflow using conda with python 3.8

查看:806
本文介绍了无法在python 3.8中使用conda安装tensorflow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我升级到了使用Python 3.8的Anaconda3 2020.07.在过去的anaconda版本中,tensorflow已成功安装. Tensorflow无法在此版本中成功安装.

Recently, I upgraded to Anaconda3 2020.07 which uses python 3.8. In past versions of anaconda, tensorflow was installed successfully. Tensorflow failed to be installed successfully in this version.

我在下面运行了命令;

I ran the command below;

conda install tensorflow-gpu

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

The error message that I received is shown below;

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?

Is there a conda command with the right parameters to get tensorflow installed successfully?

推荐答案

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

Tensorflow is not compatible with Python 3.8. See https://www.tensorflow.org/install/pip

您需要降级python版本:

You need to downgrade your python version :

conda install python=3.7

这篇关于无法在python 3.8中使用conda安装tensorflow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆