How to find the installation folder of Python

1 Answer

0 votes
import os
import sys

print(os.path.dirname(sys.executable))




'''
run:

/usr/sbin

'''

 



answered Apr 29, 2021 by avibootz
...