【问题标题】:Issue with installing tensorflow on Windows在 Windows 上安装 tensorflow 的问题
【发布时间】:2021-03-07 03:16:29
【问题描述】:

我正在尝试在我的 Windows 电脑上安装 TensorFlow。我一直无法找到解决我的问题的解决方案。

我目前正在运行 python 3.8 64 位 (pip 19.0.3)。尝试使用pip install tensorflow==2.4.0 安装时,出现错误

Could not find a version that satisfies the requirement tensorflow==2.4.0 (from versions: ) No matching distribution found for tensorflow==2.4.0 

我已经尝试过仅对 GPU 和 CPU 使用直接包位置的方法:

pip install https://storage.
googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-2.4.0-cp38-cp38-win_amd64.whl

现在得到错误

tensorflow_gpu-2.4.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.

我的系统是带有英特尔 i5 和 geforce 显卡的 x64。我还安装了 Visual Studios C++。

【问题讨论】:

  • 你能在终端输入where python,看看你的机器上安装了什么样的python吗?默认版本可能不是 3.8,这可能会导致错误。
  • 请运行 python --versionpython -c "import struct; print(struct.calcsize('P') * 8)" 来检查 Python 版本是什么,是否真的是 64 位。
  • 另外,请运行nvidia-smi,以便我们查看您的显卡的详细信息。

标签: python tensorflow pip


【解决方案1】:

你试过这个吗? :

pip install tensorflow

【讨论】:

  • 是的,我有,它给出了与 tensorflow==2.4.0 相同的错误
猜你喜欢
  • 2020-04-10
  • 1970-01-01
  • 2018-01-28
  • 1970-01-01
  • 2021-05-29
  • 1970-01-01
  • 1970-01-01
  • 2019-01-07
  • 2017-08-21
相关资源
最近更新 更多