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

后端 未结 7 2869
后悔当初
后悔当初 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:37

    Considering that in every operating system most of python's packages are installed using 'pip' (see pip documentation) you can also use the command 'pip freeze' on a terminal to print a list of all the packages you have installed through it. Other tools like 'homebrew' for macOS (used when for some reason you can't install a package using pip) have similar commands, in this specific case 'brew list'.

提交回复
热议问题