Sometimes, we want to find full path of the Python interpreter.
In this article, we’ll look at how to find full path of the Python interpreter.
How to find full path of the Python interpreter?
To find full path of the Python interpreter, we can use the sys.executable
property.
For instance, we write
import sys
print(sys.executable)
to print the full path of the Python interpreter.
Conclusion
To find full path of the Python interpreter, we can use the sys.executable
property.