The problem mentioned is not specific to conda based virtual environments.
My config:
Python 3.7.8,
VS Code: 1.63.2,
OS: Windows 10 64 bit,
venv for virtual environment
I am using python venv for virtual environment. When i imported a new .ipynb file in VS Code while trying to run it, it gave the error "Running cells with Python 3.7.8(env_name:venv) require ipykernel package".
I hit the pop up to install and can see the following being installed in the selected virtual environment/kernel i am using with my Jupyter notebook.
xxx/xxx/../python.exe -m pip install -U ipykernel
and finally, the installed packages:
Installing collected packages: wcwidth, traitlets, parso, tornado, pyzmq, pygments, prompt-toolkit, pickleshare, nest-asyncio, matplotlib-inline, jupyter-core, jedi, entrypoints, decorator, backcall, jupyter-client, ipython, debugpy, argcomplete, ipykernel
Successfully installed argcomplete-2.0.0 backcall-0.2.0 debugpy-1.5.1 decorator-5.1.1 entrypoints-0.3 ipykernel-6.6.1 ipython-7.31.0 jedi-0.18.1 jupyter-client-7.1.0 jupyter-core-4.9.1 matplotlib-inline-0.1.3 nest-asyncio-1.5.4 parso-0.8.3 pickleshare-0.7.5 prompt-toolkit-3.0.24 pygments-2.11.2 pyzmq-22.3.0 tornado-6.1 traitlets-5.1.1 wcwidth-0.2.5
You can start with installing ipykernel directly in the selected environment.