Python requires ipykernel to be installed

The reason is that your current VSCode terminal is in the environment “Deeplearning_Env“, so “ipykernel” is installed in the environment “Deeplearning_Env” instead of the environment “base conda” displayed in the pop-up box.

Solution: Please use the shortcut key Ctrl+Shift+` to open a new VScode terminal, it will automatically enter the currently selected VSCode environment (VSCode lower left corner), and activate this conda environment:

enter image description here

Then, click to install “ipykernel” according to the prompt in the pop-up box.
Or, we could also install “ipykernel” manually: (pip install ipykernel)

In addition, for the newly created Python environment (without installing “ipykernel“), before opening the Jupyter file, please refresh the VSCode terminal and enter the currently selected environment. For the conda environment, we need to activate it before using it.

Check: Check the installation of “ipykernel“:

enter image description here

More reference: Environment in VSCode.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)