surroundings:
python3.5.3+pycharm2018.2EAP
Problem Description:
Pycharm compilation error
ImportError: No module named tensorflow
Solution:
tensorflow is not installed correctly and needs to be uninstalled and reinstalled,
cmd script input: pip uninstall tensorflow
At the same time, it is best to unload some of the attached libraries (tensorboard, tensorflow-estimator and other tensorflow-related libraries)
The same code with pip uninstall xx
Pay attention to a problem here:
The installed tensorflow version must match the python version, here is a reference:
Corresponding to python3.5.3, I installed tensorflow1.5.0, pay attention not to install to tensorflow2.0.0 version, otherwise it will report an error:
could not find a version that satisfies the requrement
After the installation is complete, compile and pass.