獲取 python 包的路徑


root@ostack01:~# python
Python 2.7.12 (default, Nov 19 2018, 06:48:02) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>> yaml.__file__ '/usr/local/lib/python2.7/dist-packages/yaml/__init__.pyc'

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM