Pycharm cannot import tensorflow, althrough tensorflow has been installed

My PyCharm cannot import tensorflow, actually Anaconda Promt shows that tensorflow has been installed, and Anaconda Prompt could import tensorflow. However, when import tensorflow from PyCharm, it shows No module named 'tensorflow'. Why?

My PyCharm is the newest version(May 2019).

1 comment
Comment actions Permalink

Please double-check that your project is using the same interpreter and environment that you were using in Anaconda prompt.

Otherwise it might mean an environment issue. Please try to run PyCharm from inside Anaconda Prompt, using the `<pycharm_install>/bin/pycharm.bat` file, and see if it resolves the issue.

Kindly let me know the results.


Please sign in to leave a comment.