繁体   English   中英

python 无法安装 tensorflow

[英]python cannot install tensorflow

我的电脑是 64 位的,python 版本是 3.7.9。 我安装了 tensorflow 如下。 有谁知道如何解决它? 让我知道是否需要更多信息。 在此处输入图像描述

编辑:

我还尝试了 anaconda 如下:

https://www.tutorialspoint.com/tensorflow/tensorflow_installation.htm

但问题是在anaconda提示符下,我可以导入tensorflow。 我在 Visual Studio 2017 中使用 python。当我在 VS 中打开 python 文件时,它似乎与 anaconda 提示不同。 你知道如何让它在 VS 中也能工作吗?

您使用的 Python 版本对于您使用的 TensorFlow 版本来说太新了。

If you go here: https://pypi.org/project/tensorflow/1.13.1/ , and look on the left hand side and scroll down to "Programming Language", you will see the latest python version on that list is Python 3.6.

这就是你得到错误的原因。 您可以:

  • 切换到 Python 3.6 或
  • 使用 TensorFlow 1.14.0 或以上 支持 Python 3.7

还要确保您使用的是 64 位版本的 Python。 如果您安装了 32 位版本的 Python,则不会安装 TensorFlow。

你能试试:pip install --upgrade tensorflow

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM