zjffdu
zjffdu

Reputation: 28734

Can not use tensorflow in pycharm

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

enter image description here

enter image description here

Upvotes: 1

Views: 6148

Answers (1)

AKX
AKX

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

Related Questions