Categories
Python Answers

How to find full path of the Python interpreter?

Spread the love

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.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *