Reputation: 28734
I can ran tensorflow in anaconda command line successfully, but when I ran it in pycharm, it complains for not finding tensorflow, but I do find it in the package of this python interpreter. Is there anything else I need to do ? Thanks
Upvotes: 1
Views: 6148
Reputation: 168824
Looking at the console, your .py
file is also called tensorflow
, so when you do import tensorflow as tf
, you end up trying to import things from the same file.
Rename your own file to something else, such as tensorflow_test_1.py
or whatnot. :)
Upvotes: 7