Python: Locate Python site-packages
Python Basic: Exercise-44 with Solution
Write a Python program to locate Python site-packages.
Sample Solution:-
import site;
print(site.getsitepackages())
========== RESTART: F:/Python_APSC/py-ex-basic-44.py =============
['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python35-32', 'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages']
>>>
沒有留言:
張貼留言