Can't run jupyter notebooks in vscode, IPyKernel not installed into interpreter, Windows 10, Ananconda Distributor
See original GitHub issueI know there are several issues related to this error, but so far none of the solutions I’ve read has worked, also it seems to be dependent on the software versions, so I decided to make my own post.
Environment data
- VS Code version: 1.52.1
- Jupyter Extension version (available under the Extensions sidebar): v2020.12.414227025
- Python Extension version (available under the Extensions sidebar): v2020.12.424452561
- OS (Windows | Mac | Linux distro) and version: Windows 10
- Python and/or Anaconda version: 3.7.9 with conda 4.9.2
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
- Jupyter server running: Local
Actual behaviour
The error message I get from vscode says: IPyKernel not installed into interpreter Python 3.7.9 64-bit (conda): C:\Users\eaperez\AppData\Local\Continuum\anaconda3\python.exe. If I click install, the terminal says it is already installed.
Logs
This show output log when the error message appears.
`User belongs to experiment group ‘AlwaysDisplayTestExplorer - control’ User belongs to experiment group ‘ShowPlayIcon - start’ User belongs to experiment group ‘ShowExtensionSurveyPrompt - control’ User belongs to experiment group ‘DebugAdapterFactory - experiment’ User belongs to experiment group ‘PtvsdWheels37 - experiment’ User belongs to experiment group ‘UseTerminalToGetActivatedEnvVars - control’ User belongs to experiment group ‘LocalZMQKernel - experiment’ User belongs to experiment group ‘CollectLSRequestTiming - control’ User belongs to experiment group ‘CollectNodeLSRequestTiming - experiment’ User belongs to experiment group ‘EnableIPyWidgets - experiment’ User belongs to experiment group ‘DeprecatePythonPath - experiment’ User belongs to experiment group ‘RunByLine - experiment’ User belongs to experiment group ‘CustomEditorSupport - control’ User belongs to experiment group ‘pythonaacf’ User belongs to experiment group ‘pythonJoinMailingListVar2’ User belongs to experiment group ‘pythonSendEntireLineToREPL’
pyenv root python3.7 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” python3.6 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” python3 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” python2 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” python c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” py -3.7 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” py -3.6 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” py -3 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” py -2 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” python c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json Error 2020-12-23 09:50:23: Failed to check if file needs to be fixed [EntryNotFound (FileSystemError): Unable to read file ‘e:\Documentos\python\Customer Analytics.vscode\settings.json’ (EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, open ‘e:\Documentos\python\Customer Analytics.vscode\settings.json’) at _handleError (c:\Users\eaperez\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:745:473) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:94:5) at async y.readText (c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\out\client\extension.js:9:262389) at async p.doesFileNeedToBeFixed (c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\out\client\extension.js:59:489303) at async c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\out\client\extension.js:59:488430 at async Promise.all (index 1) at async p.getFilesToBeFixed (c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\out\client\extension.js:59:488376) at async p.updateTestSettings (c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\out\client\extension.js:59:488003)] { code: ‘FileNotFound’, name: ‘EntryNotFound (FileSystemError)’ } ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe env list Python interpreter path: ~\AppData\Local\Continuum\anaconda3\python.exe Starting Pylance language server. ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json Error 2020-12-23 09:50:23: Detection of Python Interpreter for Command python3 and args failed as file does not exist pyenv root Error 2020-12-23 09:50:24: Detection of Python Interpreter for Command python and args failed as file does not exist Error 2020-12-23 09:50:24: Detection of Python Interpreter for Command python and args failed as file does not exist ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json Error 2020-12-23 09:50:28: Failed to get interpreter information for ‘C:\Users\eaperez\AppData\Local\Microsoft\WindowsApps\python.exe’ [Error: Command failed: “C:\Users\eaperez\AppData\Local\Microsoft\WindowsApps\python.exe” “c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py” “c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\interpreterInfo.py” Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640 at ChildProcess.exithandler (child_process.js:304:12) at ChildProcess.emit (events.js:223:5) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)] { killed: false, code: 9009, signal: null, cmd: ‘“C:\\Users\eaperez\AppData\Local\Microsoft\WindowsApps\python.exe” “c:\Users\eaperez\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py” “c:\Users\eaperez\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\interpreterInfo.py”’ } Error 2020-12-23 09:50:28: Failed to get interpreter information for ‘C:\Users\eaperez\AppData\Local\Microsoft\WindowsApps\python3.exe’ [Error: Command failed: “C:\Users\eaperez\AppData\Local\Microsoft\WindowsApps\python3.exe” “c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py” “c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\interpreterInfo.py” Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640 at ChildProcess.exithandler (child_process.js:304:12) at ChildProcess.emit (events.js:223:5) at maybeClose (internal/child_process.js:1021:16) at Socket.<anonymous> (internal/child_process.js:430:11) at Socket.emit (events.js:223:5) at Pipe.<anonymous> (net.js:664:12)] { killed: false, code: 9009, signal: null, cmd: ‘“C:\\Users\eaperez\AppData\Local\Microsoft\WindowsApps\python3.exe” “c:\Users\eaperez\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py” “c:\Users\eaperez\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\interpreterInfo.py”’ } ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe env list pyenv root pyenv root ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json pyenv root ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json`
thanks in advance I hope someone can help me.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
@DonJayamanne Thank you so much, the issue was resolved with the first 2 steps.
Thanks @KikeSenpai for confirming the fix. Duplicate of #4248