In my case Jupyter server was running outside of the env I created with conda, so it was always running from base environment. This worked:
conda activate dlcourse pip install jupyterlab ipykernel