执行以下方法可以获取site-packages目录
site-packages
>>> import site; site.getsitepackages() ['/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages', '/usr/lib/site-python']
How do I find the location of my Python site-packages directory?
Last updated 4 years ago