Installing Tensorflow 1.9 in Windows

眉间皱痕 提交于 2021-02-08 08:53:19

问题


I am trying to install tensorflow in Windows,

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

The error I got is

Collecting protobuf>=3.4.0 (from tensorflow==1.9.0) Could not find a version that satisfies the requirement protobuf>=3.4.0 (from tensorflow==1.9.0) (from versions: ) No matching distribution found for protobuf>=3.4.0 (from tensorflow==1.9.0)

I googled online and I couldn't find any solutions. I am using python 3.5 64 bit


回答1:


If you are using Anaconda Create a new environment or activate your existing environment

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

You could refer Tensorflow Install for GPU version Installation




回答2:


I installed python 3.5.4 and tried to install tensorflow but then pip started showing SSL certificate error. Googling online gave me a stackoverflow answer here.

The command that worked for me is

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


来源:https://stackoverflow.com/questions/51401181/installing-tensorflow-1-9-in-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!