Answers for "check python location path windows"

1

how to find python location in cmd

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

find python path windows

>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\Python25'
Posted by: Guest on December-09-2020

Python Answers by Framework

Browse Popular Code Answers by Language