TensorFlow not found using pip

后端 未结 30 2969
有刺的猬
有刺的猬 2020-11-22 08:06

I\'m trying to intstall TensorFlow using pip:

$ pip install tensorflow --user
Collecting tensorflow
Could not find          


        
30条回答
  •  感动是毒
    2020-11-22 08:29

    Unfortunately my reputation is to low to command underneath @Sujoy answer.

    In their docs they claim to support python 3.6. The link provided by @mayur shows that their is indeed only a python3.5 wheel package. This is my try to install tensorflow:

    Microsoft Windows [Version 10.0.16299.371]
    (c) 2017 Microsoft Corporation. All rights reserved.
    
    C:\>python3 -m pip install --upgrade pip
    Requirement already up-to-date: pip in d:\python\v3\lib\site-packages (10.0.0)
    
    C:\>python3 -m pip -V
    pip 10.0.0 from D:\Python\V3\lib\site-packages\pip (python 3.6)
    
    C:\>python3 -m pip install --upgrade tensorflow
    Collecting tensorflow
    Could not find a version that satisfies the requirement tensorflow (from versions: )
    No matching distribution found for tensorflow
    

    while python 3.5 seems to install successfully. I would love to see a python3.6 version since they claim it should also work on python3.6.

    Quoted :

    "TensorFlow supports Python 3.5.x and 3.6.x on Windows. Note that Python 3 comes with the pip3 package manager, which is the program you'll use to install TensorFlow."

    Source : https://www.tensorflow.org/install/install_windows

    Python3.5 install :

    Microsoft Windows [Version 10.0.16299.371]
    (c) 2017 Microsoft Corporation. All rights reserved.
    
    C:\>python3 -m pip install --upgrade pip
    Requirement already up-to-date: pip in d:\python\v3\lib\site-packages (10.0.0)
    
    C:\>python3 -m pip -V
    pip 10.0.0 from D:\Python\V3_5\lib\site-packages\pip (python 3.5.2)
    
    C:\>python3 -m pip install --upgrade tensorflow
    Collecting tensorflow
      Downloading 
        ....
        ....
    

    I hope i am terrible wrong here but if not ring a alarm bell

提交回复
热议问题