`command: 'python.setInterpreter' not found` in VSCode 1.20
See original GitHub issueEnvironment data
VS Code version: 1.20 Python Extension version: 2018.1.0 Python Version: 3.6.4 OS and version: Windows 10 Build 16299
Actual behavior
An error notification saying command: 'python.setInterpreter' not found
appears
Expected behavior
Trying to set the python interpreter pulls up a list of interpreter choices.
Steps to reproduce:
- Install VSCode 1.20
- Install Python 3.6.4
- Open a python project with VSCode
- Press Ctrl+Shift+P to pull up the commands and select
Python: Select Interpreter
Logs
Output from Python
output panel
I discovered this trying to reselect an interpreter to force the plugin to load. There is no Python
output panel because the plugin has not successfully loaded.
Output from Console window
(Help->Developer Tools menu)
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4183 Activating extension `ms-python.python` failed: Cannot find module './banner'.
R._logMessageInConsole @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:4183
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] Activating extension `ms-python.python` failed: Cannot find module './banner'
t.log @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:253 [Extension Host] Here is the error stack: Error: Cannot find module './banner'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Function.o._load (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:664:413)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\viz_s\.vscode\extensions\ms-python.python-2018.1.0\out\client\extension.js:21:18)
at Object.<anonymous> (C:\Users\viz_s\.vscode\extensions\ms-python.python-2018.1.0\out\client\extension.js:215:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2925 command 'python.setInterpreter' not found
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
command 'python.setInterpreter' not found #14959 - GitHub
I just start my vscode normally like I always do but suddenly I can't see any python interpreter selected and cannot run my...
Read more >Python select interpreter not found VS Code - Stack Overflow
Just click on the restricted window on the bottom and just select "Trust" in the pop up window. [https://code.visualstudio.com/docs/editor/ ...
Read more >what is "command 'python.setInterpreter' not found" error(i ...
vscode folder but nothing works. UPDATE: Just found a temp solution: Righ click the python extension and install a older version.
Read more >Using Python environments in VS Code
This article discusses the helpful Python environments features available in Visual Studio Code. An "environment" in Python is the context in which a...
Read more >How to change Python Version (Interpreter) in VSCode ...
This tutorial will show you the fastest way to change your Python environment in Visual Studio code.00:00 VSCode how to change Python ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sj4nes This saved me. I had VSCode Sync extension and pulled my settings and extension from a gist. Cleaning the
.vscode/
solved the problem.Okay, it wasn’t enough to uninstall/reinstall VSCode nor disabling all extensions except for the Python code nor uninstalling/reinstalling the Python extension. I had to rename/delete the .vscode directory for a fresh “extensions” state.
Hope this helps others in the future.