简体   繁体   中英

Failed to install tensorflow on Ubuntu 17.10

When trying to install tensorflow on ubuntu 17.10 (python 3.6) i got this error:

Collecting tensorflow==1.7.0 from https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.7.0-cp36-cp36m-linux_x86_64.whl
could not find a version that satisfies the requirement astor>=0.6.0 (from tensorflow==1.7.0) (from versions: )
no matching distribution found for astor>=0.6.0 (from tensorflow==1.7.0)

when trying to install tensorflow 1.6.0 I got this error

could not find a version that satisfies the requirement tensorboard<1.7.0,>=1.6.0 (from tensorflow==1.6.0) (from versions: )

请尝试以下方法:

pip3 install grpcio==1.9.1 tensorflow==1.6.0

I solved this problem by this command

pip3 install --trusted-host pypi.org --trusted-host files.pythonhosted.org tensorflow

In fact the problem is related to the ssl

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM