site-packages目录

执行以下方法可以获取site-packages目录

>>> import site; site.getsitepackages()
['/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages', '/usr/lib/site-python']

参考

results matching ""

    No results matching ""