SyntaxFix
Write A Post
Hire A Developer
Questions
This works in Linux & Windows:
Python 3.x
>>> import sys >>> print(sys.executable) C:\path\to\python.exe
Python 2.x
>>> import sys >>> print sys.executable /usr/bin/python