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

后端 未结 7 2896
后悔当初
后悔当初 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 21:00

    For the web server, you can run the pydoc module that is included in the python distribution as a script:

    python /path/to/pydoc.py -p 1234
    

    where 1234 is the port you want the server to run at. You can then visit http://localhost:1234/ and browse the documentation.

提交回复
热议问题