执行以下方法可以获取site-packages目录
site-packages
>>> import site; site.getsitepackages() ['/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages', '/usr/lib/site-python']