ImportError: No module named tensorflow - Can't install Tensorflow

前端 未结 2 2069
迷失自我
迷失自我 2021-01-26 01:36

I am trying to install tensorflow on mac and it\'s giving me this error.

ImportError: No module named tensorflow

Here is what I have done in the terminal

2条回答
  •  后悔当初
    2021-01-26 02:06

    Try installing through Anaconda...

    Enter this in the Terminal

    export PATH=~/anaconda2/bin:$PATH  OR  export PATH=~/anaconda3/bin:$PATH
    

    And then

    conda install -c https://conda.anaconda.org/jjhelmus tensorflow
    

    This worked for me, after trying several other approaches.

提交回复
热议问题