Carlos R
Carlos R
Aug 31, 2018 · 1 min read

I found the solution by myself. Sorry for all this! I am going to explain just in cas somebody finds the same problem .

Just to reminder. Tensoflow was working for me using the python3 command in terminal, but if I used in jupyter or pycharm was not working (ImportError: No module named tensorflow).

The solution came chyecking the executable path of sys like do the OP in https://github.com/jupyter/notebook/issues/3311

so, inside jupyter i did

>>import sys

>>sys.executable

Wich the result of a certain path:

'/home/carlos/ML_PATH/env/bin/python3'

and i did the same in terminal with python 3 command.

It gabe me a different path:

‘/usr/bin/python3’

seeing that they were different, i just did a symbolic link from the main path (‘/usr/bin/python3’) to the other path, and after that, it worked! :)

$ ln -s /usr/bin/python3 /home/carlos/ML_PATH/env/bin/python3

Hope it is useful for somebody!

    Carlos R

    Written by

    Carlos R

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade