如何为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

 

posted @ 2019-08-24 17:12  三瑞  阅读(14387)  评论(1编辑  收藏  举报