command 'python.setInterpreter' not found
See original GitHub issueEnvironment data
- VS Code version: 1.52.0 (user setup)
- Extension version (available under the Extensions sidebar): 2020.11.371526539
- OS and version: Windows_NT x64 10.0.18363
- Python version (& distribution if applicable, e.g. Anaconda): 3.6.12 Anaconda
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
- Relevant/affected Python packages and their versions: N/A
- Relevant/affected Python-related VS Code extensions and their versions: just Python extension: 2020.11.371526539
- Value of the
python.languageServer
setting: Jedi
[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
Expected behaviour
After doing CTRL+SHIFT+P, I want to select Python Interpreter
Actual behaviour
Command ‘Python: Select Interpreter’ resulted in an error (command ‘python.setInterpreter’ not found) So I cannot run any python scripts within vscode
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
- I just start my vscode normally like I always do but suddenly I can’t see any python interpreter selected and cannot run my python scripts. So I tried to do CTRL+SHIFT+P to select it but it gave me this error. I didn’t update my Python recently also, but VSCode seems to have updated recently?
Logs
How can I retrieve detailed logs?
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
XXX
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:36 (12 by maintainers)
Top Results From Across the Web
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 ...
I hav the same problem, tried to install/reinstall vscode and deleted .vscode folder but nothing works. UPDATE: Just found a temp solution: ...
Read more >Using Python environments in VS Code
Configuring Python Environments in Visual Studio Code. ... If one is found, then no other interpreters are searched for or listed as pipenv...
Read more >How to Set Default Python Interpreter in VS Code
For Windows users, if you do not know the path, open your command prompt, and then: Type python to open the Python shell....
Read more >[ VSCode ]command 'python.setInterpreter' not found
家人们我又来排坑了. 用vscode连接远程服务器,没办法选择python解释器,用CTRL+shift+p:. 在这里插入图片描述 点击第一个会报错:
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
@bharel Try the following. If that does not help create a new bug.
Do the following to remove stale versions of the extension:
%USERPROFILE%/.vscode/extensions
(on windows) or~/.vscode/extensions
on Linux/Mac.ms-python.python*
It’s likely that the Python extension has not been activated. Please open a python file to activate the extension, the commands should be available after that.