Repository navigation
Allow disabling of interpreter auto-selection #17228
Description
Discussed in #16153
Originally posted by AaronNBrock April 16, 2021
Environment data
- VS Code version: 1.55.2
- Extension version (available under the Extensions sidebar): v2021.3.680753044
- OS and version: Windows 10, using WSL 2
- Python version (& distribution if applicable, e.g. Anaconda): 3.9 (but should be irrelevant to this issue)
- 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: N/A
- Value of the
python.languageServersetting: Not Set
[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]
Background
Nowhere in my vscode settings (user, remote, or workspace) do I define a python.pythonPath (nor python.defaultInterpreterPath), the setting is completely empty:
Expected behaviour
Newly created projects should have no interpreter & vscode should show Select Python Interpreter on the statusbar

Actual behaviour
Newly created projects select my conda project auth0-python-web-app (an environment from a unrelated project).
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
This is for me to reproduce
- Create a new directory
File>Open Folder...> Select newly created folder- Create a
*.py - VSCode selects my
auth0-python-web-appenvironment
Other notes
- Restarting VS code doesn't resolve this
- If I delete the selected conda environment (in this case
auth0-python-web-app), vscode will start autoselecting a different conda environment. I can't figure out how it determines which one it selects.


Activity
brettcannon commentedon Sep 1, 2021
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 5 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.
luabud commentedon Sep 2, 2021
Aaron N. Brock ☂️ (@AaronNBrock) I believe the mis-selection has been fixed in the latest version of the Python extension, would you mind verifying?
AutomateAaron commentedon Oct 7, 2021
I'm a little late, but just checked today & yes it does seem to be fixed. Happy to have this issue closed.
luabud commentedon Oct 8, 2021
Thank you so much!