簡體   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