Python 使用pip安装SciPy
可以使用Python 使用pip安装SciPy,python,installation,scipy,pip,Python,Installation,Scipy,Pip,可以使用pip install numpy安装 有类似的可能性吗?(执行pip安装scipy不起作用。) 更新 软件包SciPy现在可以与pip一起安装 尝试easy\u install表示pip搜索的中存在问题 easy_install scipy Searching for scipy Reading http://pypi.python.org/simple/scipy/ Reading http://www.scipy.org Reading http://sourceforge.ne
pip install numpy
安装
有类似的可能性吗?(执行pip安装scipy
不起作用。)
更新
软件包SciPy现在可以与
pip
一起安装 尝试easy\u install
表示pip搜索的中存在问题
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可以从(SVN)、和存储库安装。SciPy使用SVN:
pip install svn+http://svn.scipy.org/svn/scipy/trunk/#egg=scipy
更新(12-2012):
由于NumPy是一个依赖项,因此也应该安装它。如果我首先将BLAS、LAPACK和GCC-Fortran作为系统包安装(我正在使用),我可以使用以下软件包安装SciPy:
pip install scipy
在Ubuntu10.04(Lucid)中,在安装了一些依赖项之后,我可以成功地pip安装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
Ubuntu插件(Ubuntu10.04 LTS(Lucid Lynx)):
存储库移动了,但是
pip install -e git+http://github.com/scipy/scipy/#egg=scipy
我失败了。。。通过以下步骤,它最终实现了(作为虚拟环境中的root,其中python3
是到python3.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
文件夹中):
安装SciPy(在SciPy
文件夹中):
先决条件:
实际包裹:
可选软件包:
我尝试了以上所有方法,但没有任何效果。这解决了我所有的问题:
pip install -U numpy
pip install -U scipy
请注意,
pip install
的-U
选项要求升级软件包。如果没有它,如果软件包已经安装,pip
将通知您这一点,并且不做任何操作就退出。对于Arch Linux用户:
pip安装--用户scipy
是安装以下Arch软件包的先决条件:
gcc-fortran
blas
lapack
sudo yum install -y python-pip
sudo yum install -y lapack lapack-devel blas blas-devel
sudo yum install -y blas-static lapack-static
sudo pip install numpy
sudo pip install scipy
如果下载时出现任何公钥
错误,请将--nogpgcheck
作为参数添加到yum
,例如:
yum--nogpgcheck安装blas-devel
在Fedora23以后的版本中,使用
dnf
而不是yum
在我的例子中,它在我还安装了以下软件包之前是不起作用的:libatlas base dev,gfortran
sudo apt-get install libatlas-base-dev gfortran
然后运行pip install scipy在windows上安装scipy,请按照以下说明操作:- 步骤1:按此链接下载scipy.whl文件(例如scipy-0.17.0-cp34-none-win_amd64.whl) 步骤2:从命令提示符(cd文件夹名称)转到下载文件所在的目录 步骤3:运行以下命令:
pip install scipy-0.17.0-cp27-none-win_amd64.whl
对于gentoo,它位于主存储库中:
emerge——问scipy
py-mpip安装——升级pip
py-m pip安装numpy
py-m pip安装matplotlib
py-m pip安装scipy
py-m pip安装sciket学习
除了这些答案,
如果在64位机器上安装32位python,则无论您的机器如何,都必须下载32位scipy。
在上面的URL中,您可以下载软件包,命令是:pip install答案是肯定的,有。 首先,您可以使用以下命令轻松安装numpy:
pip install numpy
然后您应该安装mkl,这是Scipy所需要的,您可以下载它
下载文件_name.whl后,请安装它
C:\Users\****\Desktop\a> pip install mkl_service-1.1.2-cp35-cp35m-win32.whl
Processing c:\users\****\desktop\a\mkl_service-1.1.2-cp35-cp35m-win32.whl
Installing collected packages: mkl-service
Successfully installed mkl-service-1.1.2
然后在同一网站上,您可以下载scipy-0.18.1-cp35-cp35m-win32.whl
注意:您应该根据您的python版本下载文件_name.whl,如果您的python版本是32位的python3.5,您应该下载此文件,“win32”是关于您的python版本,而不是您的操作系统版本
然后安装文件_name.whl,如下所示:
C:\Users\****\Desktop\a>pip install scipy-0.18.1-cp35-cp35m-win32.whl
Processing c:\users\****\desktop\a\scipy-0.18.1-cp35-cp35m-win32.whl
Installing collected packages: scipy
Successfully installed scipy-0.18.1
然后只有一件事要做:注释掉一行,否则输入命令“importscipy”时会出现错误消息
所以请把这句话注释掉
from numpy._distributor_init import NUMPY_MKL # requires numpy+mkl
在这个文件中:your_own_path\lib\site packages\scipy\uuuuu init\uuuuu.py
然后可以使用SciPy:)
告诉您有关最后一步的更多信息
类似于一个类似的问题。您也可以在windows中使用python 3.6
python-m pip install scipy
精彩绝伦!它为我做的是:pip安装svn+http://svn.scipy.org/svn/scipy/trunk
注意,接下来,您还可以使用:pip install选择给定的修订版(比如5839,我认为它是最后一个稳定的版本,0.7.1)http://svn.scipy.org/svn/scipy/!svn/bc/5839/trunk/
尽管我还没有测试…+1的寿命和健壮性。两年后,在OSX 10.8.2和python 2.7上,这仍然适用于我。标准的pip install scipy
在fortan编译期间失败(即使在成功brew install gfortran
和pip install numpy
之后)。svn安装通过python3或@elaichi的依赖项apt-get
s为ubuntu消除了@lokalhort。这可能意味着你得到了最前沿的scipy,而不是最新的稳定版本。对我来说不起作用。但这似乎是一个很好的解决方案。我想,我有一些其他问题,这就是为什么这个解决方案不起作用。你如何安装blas?我的“pip安装blas”和“apt get安装blas”失败。@Eran blas是一个archlinux软件包。所以你可以通过pacman-S blas安装。现在是“libatlas base dev”,代替'libatlas-sse2-dev'$sudo apt get install libamd2.2.0 libblas3gf libc6 libgcc1 libgfortran3 liblapack3gf libumfpack5.4.0 libstdc++6 build essential gfortran libatlas dev libatlas3 base python python all dev gcc g++libblas dev liblapack dev debon ubuntu 12.04:sudo aptitude如果您想使用最新版本的scipy是做sudo-apt-get-build
sudo apt-get install libatlas-base-dev gfortran
pip install scipy-0.17.0-cp27-none-win_amd64.whl
pip install numpy
C:\Users\****\Desktop\a> pip install mkl_service-1.1.2-cp35-cp35m-win32.whl
Processing c:\users\****\desktop\a\mkl_service-1.1.2-cp35-cp35m-win32.whl
Installing collected packages: mkl-service
Successfully installed mkl-service-1.1.2
C:\Users\****\Desktop\a>pip install scipy-0.18.1-cp35-cp35m-win32.whl
Processing c:\users\****\desktop\a\scipy-0.18.1-cp35-cp35m-win32.whl
Installing collected packages: scipy
Successfully installed scipy-0.18.1
from numpy._distributor_init import NUMPY_MKL # requires numpy+mkl