它可以安装NumPy的与PIP使用pip install numpy
。
是否有类似的可能性与SciPy的 ? (做pip install scipy
不起作用。)
更新
该软件包SciPy的现在可与安装pip
!
它可以安装NumPy的与PIP使用pip install numpy
。
是否有类似的可能性与SciPy的 ? (做pip install scipy
不起作用。)
更新
该软件包SciPy的现在可与安装pip
!
要尝试easy_install
表示他们的问题列表在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中 , 水银 ,和巴扎库。 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的是一个依赖,应该安装好。
先决条件:
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
在Ubuntu 10.04(清醒),我能成功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
要安装SciPy的Windows上遵循以下步骤: -
第1步:按下此链接http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy下载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
我尝试了所有的上面并没有什么工作适合我。 这解决了我的所有问题:
pip install -U numpy
pip install -U scipy
需要注意的是, -U
选项pip install
该软件包进行升级请求。 没有它,如果已安装的软件包pip
会告诉你这一点,并退出而不做任何事情。
如果我先装BLAS,LAPACK和GCC Fortran语言作为系统软件包(我使用Arch Linux的 ),我可以得到安装了SciPy的:
pip install scipy
在Fedora,这个工程:
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
如果你得到任何public key
,同时下载错误,添加--nogpgcheck
作为参数传递给yum
,例如: yum --nogpgcheck install blas-devel
在Fedora 23日起,使用dnf
,而不是yum
。
对于Arch Linux的用户:
pip install --user scipy
先决条件要安装以下拱包:
gcc-fortran
blas
lapack
插件为Ubuntu(Ubuntu的10.04 LTS(清醒山猫)):
该库移动,但
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基-dev的,gfortran
sudo apt-get install libatlas-base-dev gfortran
然后运行PIP安装SciPy的
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
除了所有这些的答案,如果您在64位计算机上安装32位的蟒蛇,你必须下载32位的SciPy的,不论你的机器。 http://www.lfd.uci.edu/~gohlke/pythonlibs/在上面的网址,你可以下载的软件包和命令是:PIP安装
答案是肯定的,有。
首先,你可以轻松地安装numpy的使用命令:
pip install numpy
然后,你应该安装MKL,这是SciPy的需要,你可以下载它在这里
下载后的file_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版本下载file_name.whl,如果您Python版本是32位python3.5你应该下载这一个,和“的win32”是关于你的Python版本,而不是你的操作系统版本。
然后安装file_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
那么只有一两件事要做:注释掉specfic线或当你开关输入命令“进口SciPy的”会出现错误信息。
所以注释掉这行
from numpy._distributor_init import NUMPY_MKL # requires numpy+mkl
在该文件中:your_own_path \ LIB \站点包\ scipy__init __ PY
然后你可以使用SciPy的:)
这里告诉你更多关于最后一步。
这是一个类似anwser到类似的问题。
为Gentoo,它在主存储库: emerge --ask scipy
您还可以在Windows中使用这项与Python 3.6 python -m pip install scipy