1. 程式人生 > >安裝TensorFlow:Could not find a version that satisfies the requirement tensorflow

安裝TensorFlow:Could not find a version that satisfies the requirement tensorflow

簡單的安裝tensorflow

這裡安裝的tensorflow的cpu版本,gpu版本可以自行搜尋安裝指南,或者參考如下指令:

pip3 install tensorflow #cpu

這裡使用的python 3.6.3版本。

pip3 install tensorflow-gpu

問題描述:

pip3 install tensorflow

如此簡單的指令,應該不會出錯吧,結果得到如下錯誤資訊:

Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow

為什麼沒有找到tensorflow呢?那我們自行找找看吧?

pip3 search tensorflow

顯示的結果明明可以找到,卻無法安裝。

問題分析

check pip3

檢查python的版本

python -v

其中關於python的關鍵資訊:

修復問題

重新下載一個64bit的python版本,之後重新操作就可以了。確認是64位,沒有問題。

然後直接安裝tensorflow:

pip3 install tensorflow