tensorflow安裝報錯(ERROR:找不到滿足tensorflow要求的版本) (Tensorflow installation error (ERROR: Could not find a version that satisfies the requirement tensorflow))


問題描述

tensorflow安裝報錯(ERROR:找不到滿足tensorflow要求的版本) (Tensorflow installation error (ERROR: Could not find a version that satisfies the requirement tensorflow))

pip3 install ‑‑upgrade tensorflow我嘗試在我的虛擬環境中安裝 tensorflow,但一直遇到此錯誤。我有 pip3(pip 21.0.1) 和 python3(Python 3.7.9) 版本的必要先決條件,無法理解為什麼會發生此錯誤。非常感謝任何解決此錯誤的輸入。

pip3 install ‑‑upgrade tensorflow

ERROR: Could not find a version that satisfies the requirement tensorflow 
ERROR: No matching distribution found for tensorflow

錯誤消息


參考解法

方法 1:

pip3 install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow‑1.8.0‑py3‑none‑any.whl

This line worked for me but then this error popped up while checking for the tensorflow version

python ‑c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/nvidia/projects/hand_gesture/venv/lib/python3.7/site‑packages/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused‑import
  File "/home/nvidia/projects/hand_gesture/venv/lib/python3.7/site‑packages/tensorflow/python/__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/home/nvidia/projects/hand_gesture/venv/lib/python3.7/site‑packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/home/nvidia/projects/hand_gesture/venv/lib/python3.7/site‑packages/tensorflow/python/pywrap_tensorflow_internal.py", line 114
    def TFE_ContextOptionsSetAsync(arg1, async):
                                             ^
SyntaxError: invalid syntax

error terminal description

(by prajwalprajwal)

參考文件

  1. Tensorflow installation error (ERROR: Could not find a version that satisfies the requirement tensorflow) (CC BY‑SA 2.5/3.0/4.0)

#installation #TensorFlow #python-3.7 #nvidia-jetson-nano






相關問題

Instal versi Firebird yang benar (32bit atau 64bit) dengan Inno Setup (Install correct version of Firebird (32bit or 64bit) with Inno Setup)

在 Ubuntu 中與 EPD python 一起安裝 NLTK (Installing NLTK alongside EPD python in Ubuntu)

INSTAL_PARSE_FAILED_NO_CERTIFICATES - 試圖在 robotsium 上測試不是我的 .apk 文件 (INSTAL_PARSE_FAILED_NO_CERTIFICATES - trying to test not my .apk file on robotium)

直截了當的回答:安裝 py2app (Straight and simple answer: installing py2app)

Sql 2008 排序規則 (Sql 2008 Collation)

Apache Ant Build 命令“拒絕訪問” (Apache Ant Build command "Access Denied")

如何在 C# 部署中包含文件? (How can I include files in a C# deployment?)

使用一個安裝程序安裝多個軟件(安裝包裝器?) (Install multiple softwares with one installer (install wrapper?))

如何獲取 Eclipse 安裝目錄的絕對路徑? (How can I get the absolute path to the Eclipse install directory?)

iPhone,如何使用objective-c為iphone安裝新字體? (Iphone,how to install new font to iphone by using objective-c?)

create-react-app 命令卡在使用 cra-template 安裝 react react-dom react-scripts (create-react-app command stuck on installing react react-dom react-scripts with cra-template)

tensorflow安裝報錯(ERROR:找不到滿足tensorflow要求的版本) (Tensorflow installation error (ERROR: Could not find a version that satisfies the requirement tensorflow))







留言討論