>>> import os >>> import sys >>> os.path.dirname(sys.executable) 'C:Python25'
python -c "import sys; print(sys.executable)"
this video might help: https://youtu.be/PzlQPNNt8T4?t=147 (video starts at 2:27)