如何为python 2.7安装tensorflow?

谁都会走 提交于 2020-05-06 00:11:42

“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

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!