2016-12-07 175 views
0

我使用的是Visual Studio 2015,Python 3.5.2,Windows 10,并且最近已将pip升级到9.0.1。我试图在我的系统上安装Tensorflow 0.12。我试图用VS内置的“安装Python包”功能,以及命令提示Windows上的TensorFlow:“pip install tensorflow”失败

pip install python 

这两种方式,我得到了同样的错误:

Installing 'tensorflow' 
Collecting tensorflow 
    Could not find a version that satisfies the requirement tensorflow (from versions:) 
No matching distribution found for tensorflow 
'tensorflow' failed to install. Exit code: 1` 

我不知道该怎么从做这里。假设pip命令是我必须做的,所以在其他地方没有任何疑难解答。

Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2013, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32 
+0

您可以使用运行Python时打印出来的文本更新问题吗? (例如,'Python 3.5.2(v3.5.2:4def2a2901a5,Jun 25 2016,22:18:55)[win32'上的[MSC v.1900 64位(AMD64)]是它在我的工作站上打印的内容。) – mrry

+0

完成,它在那里。 – Sig

回答

2

根据您的Python版本字符串,您正在运行32位版本的Python解释器。我们仅为Python3.0的64位版本制作了PIP包,可以从Python.org或Anaconda单独下载和安装。

+0

这工作,谢谢。 – Sig

-1

Pip不附带张量流程包。你需要添加它。您可以按照张量窗口的安装方向。

https://www.tensorflow.org/versions/r0.12/get_started/os_setup.html#pip-installation-on-windows

对于cpu。

pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl 

对于GPU。

pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl 
+0

我试图将它们复制到我的命令提示符中,这两个文件都是我的默认文件和〜\ Python \ Python35-32中的一个,它们都没有工作。错误是'tensorflow-0.12.0rc0-cp35m-win_amd64.whl不支持这个平台上的轮子' – Sig