I searched for this question, but their solution did not help. Problem - I installed the libraries, but jupyter notebook doesn't see them, not all of them, some of them I installed and it imports them perfectly. Problems with tensorflow and keras
import tensorflow
import keras
ModuleNotFoundError Traceback (most recent call last) ipython-input-9-c79ed1f6e965 in module
----> 1 import tensorflow
2 import keras
ModuleNotFoundError: No module named 'tensorflow'
Python version 3.8.0
I tried installing in the terminal, but the result is the same
As I know, tensorflow<2 only works with python 3.6.* 64 bit. And it doesn't work with python 3.8.
keras need tensorflow or theano as backend, and when you don't have tensorflow or theano, keras doesn't work too. You need to uninstall python 3.8 and install python 3.6.* and try to install tensorflow and then keras with this command in terminal or cmd
'pip install tensorflow' 'pip install keras'
(You also can install theano instead of tensorflow, it works with python 3.8 and then install keras. Or clarify the version of tensorflow that is compatible with python 3.8, when you are installing tensorflow)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.