I'm working on a GUI project and need to point it to the python interpreter inside my virtualenv but can't find where it lives.
Execute next code and it will print location of your python interpreter.
import sys
print(sys.executable)
To a lot of extents, it depends on how the virtual environment was created. If you installed like this py -m venv env then you would find it here .\env\Scripts\activate . How ever if you created the environment using conda then you would find it here Anaconda_installation_folder/envs/name_of_environment. SO brief answer to your question, you would find it withing you env folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With