是可以安装的 数值模拟 使用 pip install numpy.

是否有类似的可能性 科学Py?(正在做 pip install scipy 不起作用。)


更新

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

有帮助吗?

解决方案

尝试 easy_install 表明他们的问题 清单 在里面 Python 包索引, ,其中 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), git, 水星, , 和 市场 存储库。SciPy 使用 SVN:

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

更新(2012 年 12 月):

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的: -

步骤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的),I可以得到安装了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 先决条件要安装以下 Arch 软件包:

  • 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的

  1. 安装python-3.4.4
  2. scipy-0.15.1-win32-superpack-python3.4
  3. 应用以下推荐文档
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

<强>答案是肯定的,则

首先,你可以很容易地安装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 __吡啶

然后可以使用SciPy的:)

这里告诉你更多关于最后一步。

这里是一个类似anwser到类似的问题。

除了所有这些答案, 如果您在64位计算机上安装32位的蟒蛇,你必须下载32位的SciPy的,不论你的机器。 http://www.lfd.uci.edu/~gohlke/pythonlibs/ 在上面的网址,你可以下载的软件包和命令是:PIP安装

有关巴布亚,它在主存储库: emerge --ask scipy

可以在窗户蟒3.6 python -m pip install scipy也使用此

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top