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.
Similar Posts:
- After tensorflow is installed, an error occurred during import: importerror: DLL load failed: the specified module cannot be found
- Error reporting of importing tensorflow package from pycharm
- ModuleNotFoundError: No module named ‘_pywrap_tensorflow_internal’ [How to Solve]
- Failed to load the native TensorFlow runtime [Solved]
- How to Solve Error: Failed to load the native TensorFlow runtime.
- Error in importing tensorflow in Jupiter Notebook: no module named tensorflow solution
- jupyter notebook error: No module named ‘tensorflow’
- [Solved] Tensorflow:ImportError: DLL load failed: The specified module cannot be found Failed to load the native TensorFlow runtime
- AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘ [How to Solve]
- [Solved] Error caused by correspondence between tensorflow GPU version number and CUDA