【问题标题】:Not able to install tensorflow for Python 2.7 in windows 7无法在 Windows 7 中为 Python 2.7 安装 tensorflow
【发布时间】:2018-01-06 22:19:55
【问题描述】:

我知道 tensorflow 可用于 Python 3.5 及更高版本,但是否有可能在 windows 7 中使用 cmd 为 python 2.7 安装 tensorflow?

【问题讨论】:

    标签: python-2.7 tensorflow pycharm


    【解决方案1】:

    是的,但你必须做很多工作。具体来说,您需要自己构建 tensorflow,Installing TensorFlow from Sources 声明:

    我们不正式支持在 Windows 上构建 TensorFlow;但是,如果您不介意使用高度实验性的 Bazel on WindowsTensorFlow CMake build,您可以尝试在 Windows 上构建 TensorFlow。

    如果可能的话,我强烈建议您尝试使用 python 3.5。如果你使用 conda,你可以用

    创建一个新的 conda 环境
    conda create -n tensorflow python=3.5 
    

    并使用在该环境中安装 tensorflow

    activate tensorflow
    pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.2.1-cp35-cp35m-win_amd64.whl
    

    【讨论】:

      猜你喜欢
      • 2016-04-17
      • 2011-06-10
      • 2015-06-15
      • 2016-06-12
      • 1970-01-01
      • 1970-01-01
      • 2017-01-22
      • 1970-01-01
      相关资源
      最近更新 更多