question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New version tries to pip install kernelspec

See original GitHub issue

vscode version : 1.42.0 vscode-python version : 2020.2.62710 python version : 3.7.3 64-bits os : windows 10 no venv, no anaconda

I just updated VScode and the python extension. When trying to run a Jupyter notebook or a Jupyter cell, it tries to start a Jupyter server but fails and gives an error notification asking to install more dependencies. When pressing the “Install” button, it tries to pip install kernelspec.

"C:/Program Files/Python37/python.exe" c:/Users/loudur01/.vscode/extensions/ms-python.python-2020.2.62710/pythonFiles/shell_exec.py "C:/Program Files/Python37/python.exe" -m pip install -U kernelspec --user C:/Users/loudur01/AppData/Local/Temp/tmp-14796WOIAB7kweneN.log
Executing command in shell >> C:/Program Files/Python37/python.exe -m pip install -U kernelspec --user
Collecting kernelspec
 Could not find a version that satisfies the requirement kernelspec (from versions: )
No matching distribution found for kernelspec
You are using pip version 19.0.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Traceback (most recent call last):
  File "c:/Users/loudur01/.vscode/extensions/ms-python.python-2020.2.62710/pythonFiles/shell_exec.py", line 26, in <module>
    subprocess.check_call(shell_args, stdout=sys.stdout, stderr=sys.stderr)
  File "C:\Program Files\Python37\lib\subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)

I tried uninstalling and reinstalling jupyter, rebooting the computer, running as admin.

Edit : rolling back to 2020.1.58038 and it works again

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:61 (26 by maintainers)

github_iconTop GitHub Comments

2reactions
Louis-DRcommented, Feb 13, 2020

@happyshows You can roll back the extension by right clicking in the extension menu (with the extension installed) and then ‘install other version’ or something like that. Select the version from last month

2reactions
rchiodocommented, Feb 12, 2020

Hmm, not sure why we’re trying to install kernelspec. We should be installing ipykernel.

Thanks for the bug, we’ll look into it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

New version tries to pip install kernelspec · Issue #2308 - GitHub
I just updated VScode and the python extension. When trying to run a Jupyter notebook or a Jupyter cell, it tries to start...
Read more >
Installing the IPython kernel — IPython 8.7.0 documentation
If you're running Jupyter on Python 2 and want to set up a Python 3 kernel, follow the same steps, replacing 2 with...
Read more >
How do I add python3 kernel to jupyter (IPython)
Remove: $ jupyter kernelspec uninstall python3. Add a new one: Using the Python you wish to add and pointing to the python which...
Read more >
Jupyter Notebook Kernels: How to Add, Change, Remove
Add, remove and change Kernels to use with Jupyter notebook.
Read more >
pip install kotlin-jupyter-kernel - PyPI
If you are using pip or conda to install the package, try running ... replaced by the latest PyPi version of the Kotlin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found