问题
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