Installing tensorflow on windows

后端 未结 8 2226
清酒与你
清酒与你 2021-01-18 11:05

I\'m trying to install tensorflow on windows. I have python3 (3.5.2) and pip3 (9.0.1):

pip3 install --upgrade tensorflow

Collecting tensorflow

  Could not          


        
相关标签:
8条回答
  • 2021-01-18 11:43

    You need to install Python 3.7 to download end version of Tensorflow ->2.3 and some packages:

    1. visual studio tools C++
    2. cuda_10.1.105_418.96_win10
    0 讨论(0)
  • 2021-01-18 11:45

    Just follow 3 steps: Install python 3.5.x version (64bit MUST) Install pip pip install tensorflow==2.0.0-alpha0

    And you are good to go. Found this after struggling for days

    0 讨论(0)
  • 2021-01-18 11:46

    This is what worked for me. Currently, Tensorflow only works with 64-bit windows, not 32-bit. So, you could create a new 64-bit environment and install tensorflow in it:

    set CONDA_FORCE_32BIT=
    conda create --name name_of_your_created_environment python=3.5
    activate name_of_your_created_environment
    conda install -c conda-forge tensorflow
    

    CONDA_FORCE_32BIT=1 sets to a 32-bit environment whilst CONDA_FORCE_32BIT= sets to a 64-bit environment.

    0 讨论(0)
  • 2021-01-18 11:50

    After spending hours I am able to fix TensorFlow installation issue on Windows. here is the summary https://stackoverflow.com/a/50475864/1996802

    0 讨论(0)
  • 2021-01-18 11:51

    Try the following at a Python command prompt:

    import platform
    platform.architecture()[0]
    

    It should display '64bit' Just having an x86 version of Python isn't enough. I had the same problem. Thought I had a 64 bit installation but it turned out to be 32 bit.

    BTW. it will also work fine with the Conda Python 3.6 distribution. And indeed use the distro from the Gohlke page as indicated by Guillaume Jacquenot.

    0 讨论(0)
  • 2021-01-18 11:52
     pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.0-py3-none-any.whl
    

    try this one under your python environment

    0 讨论(0)
提交回复
热议问题