problem description
Pip can be used normally in jupyterNotebook after Tensorflow is installed normally, but when importing from normal command line and pycharm, it is found that the imported package is not a normal package (you can import the package normally, but as shown in the following figure, this is not the normal introduction of a package, only a .py file is introduced)
ps: installation process does not report an error, no exception
the platform version of the problem and what methods you have tried
because I installed Anaconda3, and created a new special env to install separately, it is still a separate problem. During this period, I have also tried a lot of methods, such as modifying python version 3.5, etc.
related codes
/ / Please paste the code text below (do not replace the code with pictures)
import tensorflow as tf
tf.set_random_seed (1)
what result do you expect? What is the error message actually seen?
AttributeError: module "tensorflow" has no attribute" set_random_seed"
not only this method, but all methods will show module "tensorflow" has no attribute
I would like to ask if you have encountered this kind of problem and how to solve it.
Thank you.