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

前端 未结 2 2068
迷失自我
迷失自我 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 01:51

    I use Anaconda Navigator which includes Tensorflow. I use Spyder, it's a IDE of Anaconda Navigator similar to Matlab with variable explorer, very useful.

    You have to go to the page https://www.anaconda.com/download/#macos

    and download and install it. It's open source. Then open Spyder and call tensorflow lib. It's the easiest mode to run tensorflow and virtualenvs.

    0 讨论(0)
  • 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.

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