簡體   English   中英

我創建了一個 venv 並嘗試安裝 tensorflow 1.15 但仍然是同樣的錯誤

[英]I created a venv and tried to install tensorflow 1.15 but still the same error

請幫幫我。 我已經在全球范圍內安裝了 tensorflow 2.3 並嘗試安裝 tensorflow 1.15 但總是遇到此錯誤。 我嘗試全局卸載張量但失敗了。

(Cardiac) C:\venvCardiac>pip install tensorflow==1.15
Collecting tensorflow==1.15
  ERROR: Could not find a version that satisfies the requirement tensorflow==1.15 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4)
ERROR: No matching distribution found for tensorflow==1.15

As stated here: https://www.tensorflow.org/install/pip Python3.8 is not compatible with Tensorflow 1.x but only with Tensorflow 2.x.

您應該使用較舊的 python 版本(如 3.6.9)創建一個新的 python 環境,然后安裝 Tensorflow 1.15(如果您需要的話)。

卸載 tensorflow:

pip uninstall tensorflow

使用以下命令升級 pip:

pip install --upgrade pip

使用以下命令安裝 tensorflow 1.15:

pip install tensorflow==1.15.0

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM