1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] VS Code does not find Python kernel

Discussão em 'Python' iniciado por Stack, Agosto 11, 2025.

  1. Stack

    Stack Membro Participativo

    I am running VS Code on a Mac OS. I have installed Jupyter extension but I'm unable connect to my Python virtual environments. When I create a new virtual environment with Anaconda, VS Code appropriately recognizes the virtual environments but the ones I create manually do not work.

    I have no problem launching jupyter notebook in the browser from the command line but I'd like to be able to use VS code. Also, I have no issues running plain python scripts in the virtual environment I have created.

    Any help is greatly appreciated!

    Thanks!

    I have tried the following steps:


    1. Create a new virtual environment:

      cd ~/.virtuaenvs/
      python3 -m venv new_venv

    2. Activate the new virtual environment:

      source new_venv/bin/activate

    3. Install ipykernel and jupyter

      pip install ipykernel jupyter

    4. Add environment to kernels list

      python3 -m ipykernel install --name "new_venv" --user

    5. Restart VS code. But the new_venv does not show in my list of kernels when opening a Jupyter notebook.

    Continue reading...

Compartilhe esta Página