首页 文章

在Windows中安装Tensorflow 1.9

提问于
浏览
-1

我想在Windows中安装tensorflow,

pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.9.0-py3-none-any.whl

我得到的错误是

收集protobuf> = 3.4.0(来自tensorflow == 1.9.0)无法找到满足要求的版本protobuf> = 3.4.0(来自tensorflow == 1.9.0)(来自版本:)未找到匹配的分发for protobuf> = 3.4.0(来自tensorflow == 1.9.0)

我在网上搜索,我找不到任何解决方案 . 我使用python 3.5 64位

2 回答

  • 0

    如果您使用的是Anaconda创建新环境或激活现有环境

    conda create -n Tensorflow_Environment python=3.6
    activate Tensorflow_Environment
    pip install --ignore-installed --upgrade tensorflow==1.9.0
    

    您可以参考Tensorflow Install进行GPU版本安装

  • 3

    我安装了python 3.5.4并尝试安装tensorflow但是pip开始显示SSL证书错误 . 谷歌搜索在线给了我一个stackoverflow答案here .

    对我有用的命令是

    python -m pip install tensorflow --trusted-host files.pythonhosted.org --trusted-host pypi.org --trusted-host pypi.python.org
    

相关问题