Jupyter notebook running error: ModuleNotFoundError: No module named 'keras' solution

Continued from the previous article
"Tensorflow configuration method in win10+python3.6+tensorflow-cpu+keras+Pycharm environment"

pass throughAnaconda PromptOpen

View currently available kernels

jupyter kernelspec list

show
insert image description here

Add Python kernel

conda activate tensorflow #tensorflow是之前创建的虚拟环境名字

In the tensorflow virtual environment, installipykernel

conda install ipykernel

insert image description here

python -m ipykernel install --name tensorflow

insert image description here
Delete the Python kernel
If you accidentally added the wrong one, you can use this command to delete:

jupyter kernelspec remove your_env_name

againView currently available kernels

jupyter kernelspec list

show
insert image description here

jupyter notebook

insert image description here

insert image description here
insert image description here
Anaconda Jupyter Notebook添加
PyTorch/TensorFlow/Keras Python Kernel
the same way

refer to

1. Anaconda Jupyter Notebook adds PyTorch/TensorFlow/Keras Python Kernel Illustration
2. Error importing keras in jupyter notebook: ModuleNotFoundError: No module named 'keras' Solution
3. How to use Python virtual environment in Jupyter Notebook?
4. Use keras in jupyter notebook

Related Posts