<p>In your Python interpreter, type the following commands:</p>
<pre><code class="lang-auto">>>> import os, sys
os.path.dirname(sys.executable)
'C:\Python25'
</code></pre>
<p>Also, vous pouvez club all these and use a single line command. Open cmd and enter following command</p>
<pre><code class="lang-auto">python -c "import os, sys; print(os.path.dirname(sys.executable))"
</code></pre>