Unable to debug under Arch Linux: "Python is not installed" / "You need to select a Python interpreter"
See original GitHub issueEnvironment data
- VS Code version: 1.50.1
- Extension version (available under the Extensions sidebar): v2020.10.332292344
- OS and version: Arch Linux (rolling)
- Python version (& distribution if applicable, e.g. Anaconda): Python 3.8
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): n/a
- Relevant/affected Python packages and their versions: -
- Relevant/affected Python-related VS Code extensions and their versions: -
- Value of the
python.languageServer
setting: None
Expected behaviour
After setting the Python binary once, I’m able to run python scripts using F5.
Actual behaviour
When pressing F5, a window pops up: “You need to select a Python interpreter before you start debugging. Tip: …” When I click on “Select Python Interpreter”, I see the current value (which correctly is /usr/bin/python). I enter /usr/bin/python, or /usr/bin/python3.8, and I’m immediately asked again, so I enter the same value again. No error is shown. Then, when I press F5, the same window as before pops up again.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:12
- Comments:13 (1 by maintainers)
Top Results From Across the Web
Python - ArchWiki
Implementations available on Arch Linux include: PyPy — A Python implementation written in Python. It has speed and memory usage advantages ...
Read more >Configure an interpreter using WSL - PyCharm - JetBrains
Press Ctrl+Alt+S to open Settings/Preferences and go to Project: <project name> | Python Interpreter. Click the Add Interpreter link next to the ...
Read more >Cannot switch Python with pyenv - Stack Overflow
I successfully downloaded python2 and python3 and pyenv with following codes. brew install pyenv brew install pyenv-virtualenv pyenv install 2.7.10 pyenv ...
Read more >3. Configure Python — Python 3.11.1 documentation
Configure Options: List all./configure script options using: See also the Misc/SpecialBuilds.txt in the Python source distribution.
Read more >Python Dev environment with Visual Studio Code on Linux
If You have VS Code in version >= 1.3, press the Ctrl + Shift + X key combination - You will get to...
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
Can confirm that downgrading
electron9
from 9.3.4 to 9.3.3 fixed the issue for me on Arch Linux. For others:(Or whichever earlier version you happen to have cached.)
This is caused by an issue with the latest version of electron (9.3.4) and vscode:
https://github.com/microsoft/vscode/issues/110322
The workaround (downgrading electron) : https://github.com/microsoft/vscode/issues/110322#issuecomment-726426703