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.

command 'python.setInterpreter' not found

See original GitHub issue

In a new environment, and with the ms-python.python-2020.6.88468 extension, when selecting the pyhton interpreter I get this error:

Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found)

  • Web Browser: Edge 84.0.522.20
  • Local OS: Windows 10
  • Remote OS: Ubuntu 18 LTS
  • Remote Architecture: x64
  • code-server --version: 3.4.1
  • Python 2.7 & Python 3.6

Logs:

[2020-06-19 11:55:18.245] [exthost] [info] ExtensionService#_doActivateExtension ms-python.python {"startup":false,"extensionId":{"value":"ms-python.python","_lower":"ms-python.python"},"activationEvent":"onCommand:python.setInterpreter"}
[2020-06-19 11:55:18.245] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/code/.local/share/code-server/extensions/ms-python.python-2020.6.88468/out/client/extension

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
sycicommented, Jun 25, 2020

Hello, first you have to change the option to automatically update the extensions, otherwise it will go to the latest version again.

pref

Then uninstall the extension and proceed to install it manually from the file.

code-server --install-extension file.vsix 

You can download the version from here https://github.com/microsoft/vscode-python/releases/tag/2020.5.86806

7reactions
raulhsantcommented, Jun 19, 2020

@syci I was having the same problem. Solved it by rolling the python extension back to 2020.5.86806

Read more comments on GitHub >

github_iconTop Results From Across the Web

command 'python.setInterpreter' not found · Issue #14959
Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found) So I cannot run any python scripts ...
Read more >
Python select interpreter not found VS Code
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 >
[ VSCode ]command 'python.setInterpreter' not found
家人们我又来排坑了. 用vscode连接远程服务器,没办法选择python解释器,用CTRL+shift+p:. 在这里插入图片描述 点击第一个会报错:
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