Find Python Path

This code example demonstrates Bash programming techniques and best practices.

python c - "import sys, os; print(os.path.dirname(sys.executable))"

Language: Bash
Original Source: BlogEngine.NET Migration
Code Lines: 7

from command line :



from python: 



 

python --version

python -V

Find Python Path

from command line : python c - "import sys, os; print(os.path.dirname(sys.executable))"