Vscode-jupyter: Data science library 'kernel spec' is not installed in interpreter Python 3.8.2 (64-bit)

Created on 13 May 2020  路  12Comments  路  Source: microsoft/vscode-jupyter

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. VS Code V1.45 and Python 3.8.2
  2. Python extension is installed
  3. Right-click on a python file and click on "Run current file in an interactive window"

Actual behavior

image
Doesn't start the Jupyter notebook

Expected behavior

File runs in an interactiv jupyter notebook.

Your Jupyter and/or Python environment

_Please provide as much info as you readily know_

  • Jupyter server running: not started | No Kernel : Not started
  • Extension version: 2020.05.78807
  • VS Code version: 1.45
  • Setting python.jediEnabled: true | false
  • *Python and/or Anaconda version: * Python 3.8.2 64bit
  • OS: Windows
  • Virtual environment: conda | venv | virtualenv | N/A | ...

Developer Tools Console Output

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer

bug

Most helpful comment

I have the same problem, using VS Code 1.45.1, Python 3.7.7 (miniconda env). For me, this workaround helps: Start VS Code from anaconda prompt with the correct environment activated:

  1. open anaconda prompt
  2. type: conda activate _your_env_name_
  3. type: code

Result: "Run current file in an interactive window" now starts the jupyter kernel without errors.

All 12 comments

Your current interpreter requires jupyter to be installed and capable of running 'jupyter kernelspec list'. What happens if you click the install button? Does it work after that?

When I click Install, the terminal shows a bunch of "Requirement already satisfied, skipping upgrade..." lines as it attempts to install. And then I get this :
image

Can you upload your console log? Go to Help | Toggle Developer Tools, click on the console tab, right click, save as and drop it here?

jupyter kernelspec list

is failing to work after installing for some reason.

Originally reported here https://github.com/microsoft/vscode-python/issues/11807

@ajaygujja
Please could you provide the following information:

  • Screenshot of the error message
  • Python Version
  • Are you using Anaconda or another interpreter
  • What's the currently selected interpreter (displayed on the bottom left of VS Code statusbar)

    • This will be displayed when u have a python file opened or when you get the kernelspec not installed error.

  • Output from console window

    • Open toggle developer tools

    • Go to console tab and save eveything into a text file and upload here

I have the same problem. Jupyter server running: not started | Python 3.8.2 64-bit: Not Started.

I have the same problem, using VS Code 1.45.1, Python 3.7.7 (miniconda env). For me, this workaround helps: Start VS Code from anaconda prompt with the correct environment activated:

  1. open anaconda prompt
  2. type: conda activate _your_env_name_
  3. type: code

Result: "Run current file in an interactive window" now starts the jupyter kernel without errors.

The same problem here using Python 3.8.3. I was able to solve it by deleting the C:\Users[USERNAME]\AppData\Roaming\Python directory and then reinstall all python extensions in VS.

Looks like there is an easy workaround as mentioned above : delete the Python directory and reinstall python extensions in VS.

@Pylsur

I have the same problem, using VS Code 1.45.1, Python 3.7.7 (miniconda env). For me, this workaround helps: Start VS Code from anaconda prompt with the correct environment activated:

  1. open anaconda prompt
  2. type: conda activate _your_env_name_
  3. type: code

Result: "Run current file in an interactive window" now starts the jupyter kernel without errors.

This works for me. Thanks :)

Doesn't work for me. Opens a new VS Code window where I get the same error. VSC 1.47.3. Python 3.7.7.

I've the same issue on Python 3.8.6 64-bit.

Also having the same issue on Python 3.8.3 64-bit. No issues on 32 bit python.

Was this page helpful?
0 / 5 - 0 ratings