Monday, February 2, 2015

[Python] Where is my python? How can I find python path?

Do you want to find your python path? (It doesn't matter what is your os).


Step 01. Open your terminal(command line prompt) type python.
Then you get python REPL.

Step 02. Type import sys. Press Enter key. You can use sys module.

Step 03. Type sys.executable. Press Enter key. Yeah! Finally you get python path!! Did you see that? '/home/bin/python'? That is my python path. You get same thing or other thing.

Go ahead!!!

No comments:

Post a Comment