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.

Python is not installed

See original GitHub issue

Issue Type: Performance Issue

It is already been 3 months that I cannot use VS code as Python IDE. Both Python and Jupyter extensions keep saying the same issue. ‘Python is not installed. Please download and install Python in order to execute cells in this notebook.’

Jupyter output is like that: Info 2021-07-14 17:36:26: Finished executing cell NotebookImport#0 Error 2021-07-14 17:36:26: DataScience Error [i [Error]: Failed to find a kernelspec to use for ipykernel launch at E.createNotebookInstance (c:\Users\Togrul.vscode\extensions\ms-toolsai.jupyter-2021.8.1013163132\out\client\extension.js:90:440163) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:93:5)] { category: ‘kernelspecnotfound’, notebookMetadata: { language_info: { codemirror_mode: [Object], file_extension: ‘.py’, mimetype: ‘text/x-python’, name: ‘python’, nbconvert_exporter: ‘python’, pygments_lexer: ‘ipython3’, version: 3 }, orig_nbformat: 4 } } And a screenshot of the problem: image

Extension version: 2021.8.1013163132 VS Code version: Code 1.58.1 (2aeda6b18e13c4f4f9edf6667158a6b8d408874b, 2021-07-13T06:58:28.115Z) OS version: Windows_NT x64 10.0.19041 Restricted Mode: No

System Info
Item Value
CPUs Intel® Core™ i5-4210U CPU @ 1.70GHz (4 x 1696)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 5.91GB (1.87GB free)
Process Argv –crash-reporter-id e4816a9b-156d-4ca1-9430-5b5944115f67
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    0	   104	 10128	code main
    0	    24	  3040	   crashpad-handler
    0	    39	  3164	   utility
   10	    82	  4232	   shared-process
    0	    59	 14320	     ptyHost
    0	   121	  6264	   gpu-process
    0	   113	  7752	   window (● Untitled-1.ipynb - Visual Studio - Visual Studio Code)
    0	   135	  5932	     extensionHost
    0	    65	  3844	       "C:\Users\Togrul\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\Togrul\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=5932
    0	    12	  8772	     watcherService 
    0	    11	 13392	       console-window-host (Windows internal process)
    0	    63	 13112	     searchService
    3	    78	 11020	   window (Issue Reporter)
    0	    69	 11960	   window (undefined)
    0	   113	 14088	   window (undefined)
Workspace Info
|  Window (● Untitled-1.ipynb - Visual Studio - Visual Studio Code)
|    Folder (Visual Studio): 10101 files
|      File types: xhtml(4510) jpg(2554) ini(586) py(573) ipynb(292) html(230)
|                  csv(121) xlsx(112) png(70) txt(63)
|      Conf files: settings.json(2) launch.json(1)
|      Launch Configs: python;
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt678:30270856
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30311713
vspre833:30321513
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255cf:30335482
vscod805:30301674
pythonvspyt200:30331937
vscextlangct:30333562
binariesv615:30325510
vsccppwt:30329788
bridge0708:30335490

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
karthiknadigcommented, Jul 15, 2021

Essentially the ENOENT (-4058) error with -c “<path to python> <arg>” error usually means that Node exec tried to get default shell on Windows using ComSpec and since ComSpec was wrong it was failing while trying to shell execute python commands.

1reaction
karthiknadigcommented, Jul 15, 2021

Your ComSpec environment variable is wrong. It should be ComSpec=C:\WINDOWS\system32\cmd.exe.

You have to fix it using the environment variable UI. In the start menu type 'environment`, you should get this option image

Click on the following button: image

You should see ComSpec in the System Environment variable section: image

Fix that, then close and re-open all instances of VS Code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python is not installing on Windows 10 - Stack Overflow
Check again that the Python path is installed properly and try running the command "py" or "python" in the Command Prompt to see...
Read more >
Python was not found but can be installed - YouTube
This is the short explainer video about installing python path to environment variable of system settings you can follow the below steps to ......
Read more >
Error "Python is not installed." on Windows 10 #11069 - GitHub
Banner "Python is not installed. Please download and install Python before using the extension. Source: Python (Extension)" pops up.
Read more >
How to Install Python on Windows in 5 Minutes - DataFlair
Firstly, to install Python Windows you need to download the required Python binaries. We recommend you to download Python latest (Python 3.6.3, currently) ......
Read more >
Err: Python is not recognized as an internal or external ...
Solution · Find a folder with the installed Python version as its name in X:\Program Files (where X X X is the drive...
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