Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'keras' #73

Open
chrisbward opened this issue Dec 6, 2022 · 1 comment
Open

ModuleNotFoundError: No module named 'keras' #73

chrisbward opened this issue Dec 6, 2022 · 1 comment

Comments

@chrisbward
Copy link

cloned the repo, jumped to the root directory, then;

python3 -m venv venv
source venv/bin/activate
pip install keras tensorflow pillow h5py jupyter
jupyter notebook

Opened the notebook, went to hello-world example, ran the first code block;

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In [1], line 1
----> 1 from keras.layers import Embedding, TimeDistributed, RepeatVector, LSTM, concatenate , Input, Reshape, Dense
      2 from keras.preprocessing.image import array_to_img, img_to_array, load_img
      3 import numpy as np

ModuleNotFoundError: No module named 'keras'

What's up with that?

@chrisbward
Copy link
Author

which jupyter
/home/user/miniconda3/bin/jupyter

determined that it wasn't respecting the venv virtual environment
So I then did the following;

pip3 install ipykernel
ipython kernel install --user --name=venv

Ran the notebook server, changed kernel and still no joy.

Python is FUN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant