Answers for "python print path"

3

find python path windows

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

print python path variable

import sys
print(sys.path)
Posted by: Guest on April-21-2021

Python Answers by Framework

Browse Popular Code Answers by Language