使用pip安装SciPy

2024-05-17 17:33:12 发布

您现在位置:Python中文网/ 问答频道 /正文

可以使用pip install numpy使用pip安装NumPy

对于SciPy有类似的可能性吗?(执行pip install scipy不起作用。)


更新

软件包SciPy现在可以与pip一起安装!


Tags: installpipnumpyscipy可能性
3条回答

试图easy_install表示pip搜索的Python Package Index中的listing有问题。

easy_install scipy
Searching for scipy
Reading http://pypi.python.org/simple/scipy/
Reading http://www.scipy.org
Reading http://sourceforge.net/project/showfiles.php?group_id=27747&package_id=19531
Reading http://new.scipy.org/Wiki/Download

但是,并非所有内容都丢失;pip可以从Subversion(SVN)、GitMercurialBazaar存储库安装。SciPy使用SVN:

pip install svn+http://svn.scipy.org/svn/scipy/trunk/#egg=scipy

更新(12-2012):

pip install git+https://github.com/scipy/scipy.git

因为NumPy是一个依赖项,所以也应该安装它。

在Ubuntu 10.04(Lucid)中,在安装了一些依赖项之后,我可以成功地pip install scipy(在virtualenv中),特别是:

$ sudo apt-get install libamd2.2.0 libblas3gf libc6 libgcc1 libgfortran3 liblapack3gf libumfpack5.4.0 libstdc++6 build-essential gfortran libatlas-sse2-dev python-all-dev

先决条件:

sudo apt-get install build-essential gfortran libatlas-base-dev python-pip python-dev
sudo pip install --upgrade pip

实际包:

sudo pip install numpy
sudo pip install scipy

可选包:

sudo pip install matplotlib   OR  sudo apt-get install python-matplotlib
sudo pip install -U scikit-learn
sudo pip install pandas

src

相关问题 更多 >