How do I find out what Python libraries are installed on my Mac?

后端 未结 7 2851
后悔当初
后悔当初 2021-02-19 20:25

I\'m just starting out with Python, and have found out that I can import various libraries. How do I find out what libraries exist on my Mac that I can import? How do I find out

7条回答
  •  名媛妹妹
    2021-02-19 20:55

    On Leopard, depending on the python package you're using and the version number, the modules can be found in /Library/Python:

    /Library/Python/2.5/site-packages

    or in /Library/Frameworks

    /Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages

    (it could also be 3.0 or whatever version)... I guess it is quite the same with Tiger

提交回复
热议问题