我试图在支持python 2.7的Anaconda上安装张量流,我被卡住了 [英] Im trying to install tensorflow on Anaconda that supports python 2.7 and I'm stuck
问题描述
我试图在支持python 2.7的Anaconda上安装张量流,我按照tensorflow主页上的手册告诉我要做,每次都会出现此错误。
Im trying to install tensorflow on Anaconda that supports python 2.7, I did as the manual given on the tensorflow homepage told me to do, and this error occurs every time.
UnsatisfiableError:发现以下规范存在冲突:
- python 2.7 *
- tensorflow - > protobuf == 3.1.0 - > python 3.5 *
使用conda信息看到每个包的依赖关系。
UnsatisfiableError: The following specifications were found to be in conflict: - python 2.7* - tensorflow -> protobuf ==3.1.0 -> python 3.5* Use "conda info " to see the dependencies for each package.
你能帮我吗?
这是我的公寓信息
conda info
当前安装:
conda info Current conda install:
platform : win-64
conda version : 4.3.7
conda is private : False
conda-env version : 4.3.7
conda-build version : 2.0.2
python version : 2.7.12.final.0
requests version : 2.12.4
root environment : C:\Users\sml\Anaconda2 (writable)
default environment : C:\Users\sml\Anaconda2\envs\tensoflow
envs directories : C:\Users\sml\Anaconda2\envs
package cache : C:\Users\sml\Anaconda2\pkgs
channel URLs : https://repo.continuum.io/pkgs/free/win-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/r/win-64
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/win-64
https://repo.continuum.io/pkgs/pro/noarch
https://repo.continuum.io/pkgs/msys2/win-64
https://repo.continuum.io/pkgs/msys2/noarch
config file : None
offline mode : False
user-agent : conda/4.3.7 requests/2.12.4 CPython/2.7.12 Windows/10 Windows/10.0.14393
推荐答案
正如在评论中所说,在Microsoft Windows TensorFlow只运行在Pytho n 3.5 64位。
As said in the comments, on Microsoft Windows TensorFlow only runs on Python 3.5 64-bit.
Python 2.7不受支持,因为TensorFlow使用许多C ++ 11功能(例如, auto
),但用于Python 2.7的Microsoft Visual C ++编译器的版本是2008年。
Python 2.7 is unsupported because TensorFlow uses many C++11 features (e.g., auto
), but the version of the Microsoft Visual C++ Compiler used for Python 2.7 is 2008.
这篇关于我试图在支持python 2.7的Anaconda上安装张量流,我被卡住了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!