TensorFlow settings result in ImportError: no module named tensorflow

I am trying to get TensorFlow to work on my Mac (OSX El Capitan 10.11.2). I tried pip install from the setup guide and also followed the instructions in the accepted answer here .

In both cases, I can successfully activate virtualenv , and my changes to the tensorflow. Python works fine, I can do simple calculations on the command line . But when I try to import shadoworflow:

 import tensorflow as tf 

I repeatedly get this error:

 ImportError: No module named tensorflow 

Any help would be greatly appreciated.

+7
python tensorflow macos
source share
1 answer

I had a problem that was reported in the original question. Python worked fine, I followed the installation steps on the Tensforflow website and got "No module named tensorflow".

Reinstall python via brew and, as a result, reinstall the pipette, fix it. I did not need to remove anything, only the line below along with the usual pip installation from the tensorflow installation document:

 brew install python 
+1
source share

All Articles