Installing the SciPy Stack

Installing the SciPy Stack

These are instructions for installingthe full SciPy stack. For installing individual packages, such as NumPy and SciPy, seeIndividual binary and source packagesbelow.

Scientific Python distributions

For most users, especially on Windows and Mac, the easiest way to install the packages of the SciPy stack is to download one of these Python distributions, which includes all the key packages:

Anaconda: A free distribution for the SciPy stack. Supports Linux, Windows and Mac.

Enthought Canopy: The free and commercial versions include the core SciPy stack packages. Supports Linux, Windows and Mac.

Python(x,y): A free distribution including the SciPy stack, based around the Spyder IDE. Windows only.

WinPython: A free distribution including the SciPy stack. Windows only.

Pyzo: A free distribution based on Anaconda and the IEP interactive development environment. Supports Linux, Windows and Mac.

Linux packages

Users on Linux can quickly install the necessary packages from repositories.

Ubuntu & Debian

sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose

The versions in Ubuntu 12.10 and Debian 7.0 meet the current SciPy stack specification. Users might also want to add theNeuroDebian repositoryfor extra SciPy packages.

Fedora

sudo yum install numpy scipy python-matplotlib ipython python-pandas sympy python-nose

Users of Fedora 17 and earlier should then upgrade IPython using pip:

sudo pip install --upgrade ipython

Gentoo

sudo emerge -aN '>=dev-python/numpy-1.6' '>=sci-libs/scipy-0.10' '>=dev-python/matplotlib-1.1' '>=dev-python/ipython-0.13' '>=dev-python/pandas-0.8' '>=dev-python/sympy-0.7' '>=dev-python/nose-1.1'

You may get some messages saying that keyword changes or USE changes are necessary in order to proceed, and that you should use--autounmask-writeto 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-writeappended, then runsudodispatch-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 withMacportsexecute this command in a terminal:

sudo port install py27-numpy py27-scipy py27-matplotlib py27-ipython +notebook py27-pandas py27-sympy py27-nose

Individual binary and source packages

The maintainers of many of the packages in theSciPy stackprovide “official” binary installers for common Windows and OS-X systems that can be used to install the packages one by one. These installers are generally built to be compatible with the Python binaries available from python.org.

python

numpy

scipy

matplotlib

ipython

pandas

sympy

nose

For Windows: Christoph Gohlke providespre-built Windows installersfor many Python packages, including all of the core SciPy stack.

You can also build any of the SciPy packages from source, for instance if you want to get involved with development. This is easy for packages written entirely in Python, while others like NumPy require compiling C code. Refer to individual projects for more details.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容