-
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
Python extension always chooses specific Poetry environment instead of pyenv default #23588
Comments
I haven't yet tried this, but for some reason the problem went away on its own, for now. I will check for the next day or two and reopen the issue if needed. |
No, unfortunately, despite clearing the caches, this issue persists. |
Are you still experiencing this? @slhck |
Unfortunately yes. Is there any specific output/logs I can provide to help troubleshooting this? |
Actually, let me close this for now. I did some more tests and I think the only problem I had was when changing directories within the built-in terminal, which obviously loads the wrong Python environment. |
When I open a new Python project in VS Code, I always get the same default interpreter, which is a Poetry environment that I actually only use for a particular project. However, it gets auto-selected for every Python project, even one that I haven't loaded before:
I am using:
I have set the following custom setting:
pyenv global
is set to3.11
, sowhich python
in a default shell points to/Users/werner/.pyenv/versions/3.11.7/bin/python3
. I would expect VS Code to either pick that one for me, or at least the Homebrew-installed one, but definitely not a random Poetry environment.I do not want to set a default interpreter manually — it's the automatic selection process that appears to broken here.
Here is the Python output:
The text was updated successfully, but these errors were encountered: