以numpy的安装为例:(如果有sudo权限)
Linux packages
Users on Linux can quickly install the necessary packages from repositories.
Ubuntu & Debian
The versions in Ubuntu 12.10 and Debian 7.0 meet the current SciPy stack specification. Users might also want to add the NeuroDebian repository for extra SciPy packages.
Gentoo
You may get some messages saying that keyword changes or USE changes are necessary in order to proceed, and that you should use --autounmask-write to write changes to config files. This is especially likely to happen if you are running Gentoo Stable rather than Gentoo Testing, as of this writing (February 2013).
If this happens, just run the above command with --autounmask-write appended, then run sudo dispatch-conf (or an alternative) to save the configuration changes, and finally run the original command again.
Mac packages
Macs (unlike Linux) don’t come with a package manager, but there are a couple of popular package managers you can install.
Macports
To install the scipy stack for Python 2.7 with Macports execute this command in a terminal: