Search code examples
pythonpython-3.xtensorflowubuntu-17.10

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: )

Solution

  • 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