Python is not installed
See original GitHub issueIssue 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:
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:
- Created 2 years ago
- Comments:15 (5 by maintainers)
Top GitHub Comments
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.Your
ComSpec
environment variable is wrong. It should beComSpec=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
Click on the following button:
You should see
ComSpec
in the System Environment variable section:Fix that, then close and re-open all instances of VS Code.