-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found) #12072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Was the extension activated when you ran the command? |
Python extension and intelligence.
…On Mon, 1 Jun 2020 at 10:52 PM, Brett Cannon ***@***.***> wrote:
Was the extension activated when you ran the command?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12072 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABU7C4ZX4TJAUA6DLPSPPDDRUPPTVANCNFSM4NOSRXHA>
.
|
@asadullahkhan Try with the latest version of the extension. If you continue to see this issue, try uninstalling the extension, reload VSCode. Then go to |
same problem |
@rholland have you tried the steps in my previous comment? I so can you share the output of dir/ls in |
I'm experiencing similar issue: Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found) |
i get the same issue (Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found)) even after doing all of @karthiknadig steps |
Same issue with an offline install of VS Code and the python extension from a VSIX. Version: 1.51.1 (user setup) ms-python v2020.11.358366026 Any ideas on how to troubleshoot? |
Hi,
Just go to the vscode python library and remove all the python library
version & re-install it.
…On Thu, 2 Jul 2020 at 1:43 PM, Rod Holland ***@***.***> wrote:
same problem
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12072 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABU7C46RLPL3ZY5FJDYLGCLRZQ6UHANCNFSM4NOSRXHA>
.
|
Hi,
Just go to the vscode python library and remove all the python library
version & re-install it.
…On Mon, 23 Nov 2020 at 5:28 PM, Molotch ***@***.***> wrote:
Same issue with an offline install of VS Code and the python extension
from a VSIX.
Version: 1.51.1 (user setup)
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:34:32.027Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.17763
ms-python v2020.11.358366026
Any ideas on how to troubleshoot?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12072 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABU7C46NA2LJOYY5LT6MOBDSRJE6LANCNFSM4NOSRXHA>
.
|
What do you mean by the "vscode python library"? I tried uninstalling all extensions and made sure the ~/.vscode/extensions folder was empty before reinstalling. I also tried a different version of the extension (ms-python.python-2020.11.367453362.vsix) and another version of VS Code (1.49.0). No luck. On my regular laptop that's connected to the internet I've had no problems. This is a locked down environment with no internet access, also it's running Windows Serer 2019 if that's a problem. This is the first time I'm running it there. |
I have same issue. Also, Python extension doesn't even seem to try to load when I'm working on a Python file. |
Are you running multiple python version?
…On Wed, 25 Nov 2020 at 3:39 AM, Gerard McGrattan ***@***.***> wrote:
I have same issue. Also, Python extension doesn't even seem to try to load
when I'm working on a Python file.
Extension is installed and enabled but not listed in "Running Extensions".
Had to install via VSIX as laptop behind proxy.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12072 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABU7C4ZRHDPTCWZH3LERGLDSRQVJFANCNFSM4NOSRXHA>
.
|
I have same issue as @molotch. On another machine with internet access the problem does not exist I'm using VSCode in a locked offline environment without internet access. |
Thanks, this worked for me also. There's definitely something going on with the 2020.11.xxxxx versions. |
It has been the same issue that bothers me so much. |
According to the manifest ms-python seems to depend on ms-toolsai.jupyter. Have you tried installing also that? https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter |
If you are installing from VSIX manually (and offline) you will also need to install |
Thanks @karthiknadig. I was having issues with installing the Python extension offline and installing the |
I also have this problem with an offline install. I'll try the jupyter extension, but it would be good if the extension reported some kind of error when it wasn't installed instead of failing silently. |
Installed it today in an offline environment, (install from Ran again with the Tried the insider build again but also installing the This seems to have worked for me. Note: Made fresh installs of both editions and also removed extensions as described by @karthiknadig to be on the safe side |
I had the exact same issues above, "Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found)" RHEL 7.9 Initially, when I tried to run my python files, I would get an error that jupyter notebook could not be loaded. When I finally went to set the interpreter using Shift-ctl-P , I got Solved it by deleting .vscode in my home directory. I'm guessing this would be %USERPROFILE%.vscode in windows. Relaunching vscode recreated the .vscode directory and then it prompted me to download all the extensions I needed. Not sure if it helps, but I think this may fix most of the problems above. |
Same issue - running on a Mac and have had no issues - then suddenly the python extensions stopped working. I've deleted the extensions directory, install and uninstalled all extensions - nothing works. |
same issue. Cannot use jupyter notebook |
Does this help? microsoft/vscode#131040 |
With Python: Select Interpreter throwing an error , based on @jayhowell 's response I deleted .vscode/ms-python-vscode-#####/ folder and all was fixed when I reloaded vscode. I've not dug any deeper. |
I'm experiencing the same issue, none of the python commands work on ssh (locally they work). vscode: Version: 1.60.2 Commit: 7f6ab5485bbc008386c4386d08766667e155244e |
In the latest release, we made several changes to how the extension loads and activates. Please file separate issue if you run into this. We have addressed a bunch of issues with extension loading that should indirectly address this as well. So, I will be closing this one. |
Issue Type: Bug
Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found)
Extension version: 2020.5.80290
VS Code version: Code 1.45.1 (5763d909d5f12fe19f215cbfdd29a91c0fa9208a, 2020-05-14T08:27:35.169Z)
OS version: Windows_NT x64 6.1.7601
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: unavailable_off
protected_video_decode: unavailable_off
rasterization: unavailable_off
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: unavailable_off
The text was updated successfully, but these errors were encountered: