获取python包的路径

>>> import chatterbot
>>> print chatterbot.__file__
/home/appleyuchi/.local/lib/python2.7/site-packages/chatterbot/__init__.pyc
 

你可能感兴趣的:(Python)