I wanna to know how this extension finds the interpreter in the computer?How to determine the path? #23967
-
Beta Was this translation helpful? Give feedback.
Answered by
karthiknadig
Aug 22, 2024
Replies: 2 comments 1 reply
-
vscode-python/src/client/pythonEnvironments/common
|
Beta Was this translation helpful? Give feedback.
0 replies
-
For linux/mac we look for this via PATH, and in some cases we also search for known locations for things like Homebrew installed pythons from some locations. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have a new discovery mechanism that is more verbose about this. It also does a better job with XCode. you can see the code here:
https://github.com/microsoft/python-environment-tools/tree/main/crates/pet-homebrew
https://github.com/microsoft/python-environment-tools/tree/main/crates/pet-mac-xcode
https://github.com/microsoft/python-environment-tools/tree/main/crates/pet-mac-commandlinetools
https://github.com/microsoft/python-environment-tools/tree/main/crates/pet-mac-python-org
https://github.com/microsoft/python-environment-tools/tree/main/crates/pet-linux-global-python