使用pip install NumPy可以用pip安装NumPy。
SciPy也有类似的可能性吗?(执行pip install scipy不起作用。)
更新
SciPy包现在可以和pip一起安装了!
使用pip install NumPy可以用pip安装NumPy。
SciPy也有类似的可能性吗?(执行pip install scipy不起作用。)
更新
SciPy包现在可以和pip一起安装了!
当前回答
如果我第一次安装BLAS, LAPACK和GCC Fortran作为系统包(我使用Arch Linux),我可以安装SciPy:
pip install scipy
其他回答
安装python-3.4.4 scipy-0.15.1-win32-superpack-python3.4 应用下面的推荐文档
py -m pip install --upgrade pip
py -m pip install numpy
py -m pip install matplotlib
py -m pip install scipy
py -m pip install scikit-learn
你也可以在python 3.6的windows中使用此命令
尝试easy_install表明它们在pip搜索的Python包索引中的列表有问题。
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)、Git、Mercurial和Bazaar存储库安装。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插件(Ubuntu 10.04 LTS (Lucid Lynx)):
仓库移动了,但是
pip install -e git+http://github.com/scipy/scipy/#egg=scipy
我失败了……通过以下步骤,它最终解决了问题(在虚拟环境中作为根,其中python3是Python 3.2.2的链接): 安装Ubuntu依赖项(见elaichi),克隆NumPy和SciPy:
git clone git://github.com/scipy/scipy.git scipy
git clone git://github.com/numpy/numpy.git numpy
生成NumPy(在NumPy文件夹内):
python3 setup.py build --fcompiler=gnu95
安装SciPy(在SciPy文件夹内):
python3 setup.py install
在我的例子中,直到我还安装了以下包:libatlas-base-dev, gfortran,它才正常工作
sudo apt-get install libatlas-base-dev gfortran
然后执行pip install scipy命令