When I run the code from keras.models import Sequential
I get the error:
ModuleNotFoundError: No module named 'tensorflow.python'
.
I use Python 3.6 and already installed tensorflow via pip3.6 as well as keras.
How can I fix this? Thanks
When I run the code from keras.models import Sequential
I get the error:
ModuleNotFoundError: No module named 'tensorflow.python'
.
I use Python 3.6 and already installed tensorflow via pip3.6 as well as keras.
How can I fix this? Thanks
Can you provide the full stack trace?
Here is the full error mesage:
Using TensorFlow backend.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/mmmmm/.local/lib/python3.6/site-packages/keras/__init__.py", line 3, in <module>
from . import utils
File "/home/mmmmm/.local/lib/python3.6/site-packages/keras/utils/__init__.py", line 6, in <module>
from . import conv_utils
File "/home/mmmmm/.local/lib/python3.6/site-packages/keras/utils/conv_utils.py", line 9, in <module>
from .. import backend as K
File "/home/mmmmm/.local/lib/python3.6/site-packages/keras/backend/__init__.py", line 1, in <module>
from .load_backend import epsilon
File "/home/mmmmm/.local/lib/python3.6/site-packages/keras/backend/load_backend.py", line 90, in <module>
from .tensorflow_backend import *
File "/home/mmmmm/.local/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 5, in <module>
import tensorflow as tf
File "/home/mmmmm/.local/lib/python3.6/site-packages/tensorflow/__init__.py", line 28, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
ModuleNotFoundError: No module named 'tensorflow.python'
can you try installing and switching to theano instead of the tensorflow backend?
Thanks for the information. It really helped me! happy wheels
Theano works, thanks.
yay, thanks for confirming :)