pythonlinux

Where is python interpreter located in virtualenv?


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.


Solution

  • Execute next code and it will print location of your python interpreter.

    import sys
    print(sys.executable)