Python error in VSCode :Sorry, something went wrong activating IntelliCode support for Python
Question:
My code is not working in vscode when i click to run code i saw this error:
Sorry, something went wrong activating IntelliCode support for Python.
Please check the "Python" and "VS IntelliCode" output windows for
details.
and when i try to run code again i saw this message;
Code is already running
Code dont stop when i click to ctrl+c so i have to close the editor and open it back. I dont understand why this happen , please help me,thanks in advance.
Answers:
I would just like to add a few helpful links:
For a lot of people, it just began working after a few tries randomly. See this text (quoted from issue 57):
There’s a race condition in the activation of both the IntelliCode and Python language server extensions. Even if the Python extension is loaded, the language server that the extension spins up might not be fully initialized yet. So if the Python extension loads, then the IntelliCode extension, then the Python language server initializes, we will have this problem.
For some people, it was working to reload VS Intellicode pack following the reinstall the Python extension pack.
Thank you.
- Make sure to have Pylance installed (intellisense support for Python)
- Make sure to be into the tab for any python file For VS Code, and locate the
{} Python
icon on the bottom row. Click over the {} icon, and then click over Select Interpreter. Just after that, make sure to input the desired python path, wait for a few seconds in the current python tab, and finally Pylance will be doing its job
- First of all find your Python installation path
- Copy it
Then in VSCode
- Open settings
- Extensions
- Python
- Default Interpreter Path
And paste the full path to your Python installation folder.
For example:
X:/Program Files/Python310
If it didn’t work immediately, try reloading VSCode.
(P.S. Should work without any reloads)
Go to Extensions, then search for the Python extension, then switch to release.
My code is not working in vscode when i click to run code i saw this error:
Sorry, something went wrong activating IntelliCode support for Python.
Please check the "Python" and "VS IntelliCode" output windows for
details.
and when i try to run code again i saw this message;
Code is already running
Code dont stop when i click to ctrl+c so i have to close the editor and open it back. I dont understand why this happen , please help me,thanks in advance.
I would just like to add a few helpful links:
For a lot of people, it just began working after a few tries randomly. See this text (quoted from issue 57):
There’s a race condition in the activation of both the IntelliCode and Python language server extensions. Even if the Python extension is loaded, the language server that the extension spins up might not be fully initialized yet. So if the Python extension loads, then the IntelliCode extension, then the Python language server initializes, we will have this problem.
For some people, it was working to reload VS Intellicode pack following the reinstall the Python extension pack.
Thank you.
- Make sure to have Pylance installed (intellisense support for Python)
- Make sure to be into the tab for any python file For VS Code, and locate the
{} Python
icon on the bottom row. Click over the {} icon, and then click over Select Interpreter. Just after that, make sure to input the desired python path, wait for a few seconds in the current python tab, and finally Pylance will be doing its job
- First of all find your Python installation path
- Copy it
Then in VSCode
- Open settings
- Extensions
- Python
- Default Interpreter Path
And paste the full path to your Python installation folder.
For example:
X:/Program Files/Python310
If it didn’t work immediately, try reloading VSCode.
(P.S. Should work without any reloads)
Go to Extensions, then search for the Python extension, then switch to release.