-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Selected python interpreter is not used in terminal window #14422
Comments
Check your |
Isn't the interpreter picker supposed to force it to use that one? |
No, we don't control this. These are globally installed python interpreters. which one is accessed purely depends on which one comes first in PATH. If you have a activatable environment, and that environment was activated in the terminal. Then as a part of activation, usually the activation script (again not provided by the extension) will add the right path to the front of PATH. This is how most activations work. So, if you use |
Seems like a user may not understand this. What's the point of allowing me to pick the two interpreters then? |
You are correct. People have filed bugs about this. The point of picking interpreters is to run the tools linter, formatter, debugger, intellisense, etc using the selected interpreter. The terminal represents how you have your system configured. We do have a long term plan to solve this. It is not as straight forward as you would think. for example, pyenv using python shim, and figures out which version to run for each folder by looking at pyenv settings in that folder. People could have set an alias to |
I have two interpreters to use, both installed in global locations
I have the Python 3.9 one selected (as it also shows in the interpreter at the bottom left).
If I create a new terminal window, it uses the 3.8 one:
The text was updated successfully, but these errors were encountered: