Error importing keras in jupyter Notebook: modulenotfounderror: no module named ‘keras’ solution

For the first time using Jupyter encountered some problems, a simple record.
I use anaconda comes with jupyter notebook, directly in the terminal input

jupyter notebook

The page just pops up. Or you can install it with PIP.
default is open C disk directory, if you want to open C disk outside the path, you can open the required directory in the terminal, then open jupyter notebook, or directly after the command to add a path, such as:

jupyter notebook D:\xxx\xxx

Can.
When I was running the code, I encountered a ModuleNotFoundError: No module named ‘Keras’.
the solution is as follows:
1, enter the configured virtual environment in the terminal

activate keras

2. Execute the following command:

conda install nb_conda

3, after installation, then start the Jupyter Notebook, it is OK.
need to restart jupyter notebook after every environment update, as I do.
Reference: 1, https://zhuanlan.zhihu.com/p/29564719

2
3, https://www.bbsmax.com/A/A7zgNovPd4/, https://stackoverflow.com/questions/38221181/no-module-named-tensorflow-in-jupyter

Read More: