Installing tensorflow on windows

后端 未结 8 2244
清酒与你
清酒与你 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: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.

提交回复
热议问题