如何為python 2.7安裝tensorflow?


“TensorFlow在Windows上支持Python 3.5.x和3.6.x.”

因此,您無法在Windows上使用Python 2.7的tensorflow

一旦你有一個使用Python 3.6的Anaconda就可以了

pip install tensorflow

could not find a version that satisfies the requirement tensorflow安裝時一直報這個錯誤。 手動搜索一下

pip search tensorflow

結果找到一堆,第一個好像就是,那為啥還會報這個錯呢?后來發現兩個可能的原因

  1. python的版本可能是32位的
  2. python的版本可能是3.7幾的

解決辦法: 重新裝個3.6幾的python就可以了

https://www.python.org/ftp/python/2.7.16/python-2.7.16.amd64.msi

 

 

遇到的問題:

tensorflow 1.10.0 has requirement setuptools<=39.1.0, but you'll have setuptools 39.2.0 which is incompatible.

提示setuptools版本不對

解決方式:
先卸載
pip uninstall setuptools
再重新安裝
pip install --ignore-installed setuptools==39.1.0

 


免責聲明!

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



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