![](/img/trans.png)
[英]During the importing of tensorflow this error came up everytime.I did tried to uninstall and then install it again .It still gives the same error
[英]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.