Answers for "find location of python installation"

3

get python directiory

import sys
print('\n'.join(sys.path))
Posted by: Guest on May-09-2020
1

how to find python location in cmd

python -c "import sys; print(sys.executable)"
Posted by: Guest on June-16-2021
0

location of python in cmd

python -c "import os, sys; print(os.path.dirname(sys.executable))"
Posted by: Guest on July-13-2021

Code answers related to "find location of python installation"

Python Answers by Framework

Browse Popular Code Answers by Language