如何在 Windows 上的 Python 2.7 上安装 Tensorflow? [英] How to install Tensorflow on Python 2.7 on Windows?

查看:88
本文介绍了如何在 Windows 上的 Python 2.7 上安装 Tensorflow?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过 pip (pip install tensorflow) 安装 TensorFlow,但出现此错误

I try to install TensorFlow via pip (pip install tensorflow) but get this error

找不到满足张量流要求的版本(来自版本:)

could not find a version that satisfies the requirement tensorflow (from versions: )

有没有办法解决这个问题?我还是想通过pip安装

Is there a solution to this problem? I still wish to install it via pip

推荐答案

详细说明dirty_feri 的答案,因为它不是最新的.

Elaborating a bit on dirty_feri's answer as it's not quite up to date.

Tensorflow for Windows 仅支持 Python 3.5 Python 3.6(自 1.2 起).当您通过 pip 下载时,您将收到最新的 1.2 版本,因此您应该能够在 3.6 上运行.

Tensorflow for Windows is only supported with Python 3.5 and Python 3.6 (since 1.2). As you are downloading via pip you will be receiving the latest 1.2 version so you should be able to run on 3.6.

应该不需要使用 Anaconda 版本的 Tensorflow,不支持该发行版,如果您运行的是 anaconda,pip 版本就可以了.

There should be no need to use the Anaconda version of Tensorflow, the distribution is not supported and, if you are running anaconda, the pip version does just fine.

如果您仍然需要为其他项目提供 python 2.7 支持,那么我建议您使用 anaconda 或 virtualenv 之类的环境管理器,以允许您同时运行多个版本的 python.

If you still require python 2.7 support for other projects then may I suggest the use of an environment manager like anaconda or virtualenv to allow you to have multiple versions of python running nicely at once.

一旦您安装了受支持的 python 版本,您应该能够运行 pip install tensorflow 并且它应该会在几分钟内安装.

Once you have a supported version of python installed you should be able to run pip install tensorflow and it should install in a few minutes.

此处提供完整的安装说明:https://www.tensorflow.org/install/install_windows

Full installation instructions are available here: https://www.tensorflow.org/install/install_windows

这篇关于如何在 Windows 上的 Python 2.7 上安装 Tensorflow?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆