無法安裝tensorflow 1.15


對聊天機器人項目還不是很滿意,所以重新打開項目。遇到如下問題:

sess = tf.Session( )
找不到Session方法。

原來,由於打開了另一個項目,環境已經變了,tensorflow已經變成了2.2版本。

只得重新安裝。

決定在新環境安裝。python版本為3.8。

錯誤如下:

(venv) E:\nlp\chatbot\project\src>pip install tensorflow==1.15

Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
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)
ERROR: No matching distribution found for tensorflow==1.15

解決方案1
python -m pip install --upgrade pip
pip install tensorflow==1.15
還是無法解決

最終還是轉到python 3.7版本,才能安裝tensorflow1.14


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM