Instalación de SciPy con pip


Es posible instalar NumPy con pip con pip install numpy.

¿Existe una posibilidad similar con SciPy? (Hacer pip install scipy no funciona.)


Actualización

El paquete SciPy ya está disponible para ser instalado con pip!

Author: nbro, 2010-02-06

15 answers

Un intento de easy_install indica un problema con su listado en el Python Package Index, que pip busca.

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

No todo está perdido, sin embargo; pip se puede instalar desde Subversion (SVN), Git, Repositorios Mercurial , y Bazaar. SciPy utiliza SVN:

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

Actualización (12-2012):

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

Dado que NumPy es una dependencia, también debería instalarse.

 105
Author: jak119,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-04-16 21:12:24

Requisito previo:

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

paquetes Reales:

sudo pip install numpy
sudo pip install scipy

paquetes Opcionales:

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

Src

 206
Author: Abhishek Gupta,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-10-12 12:12:33

En Ubuntu 10.04 (Lucid), pude pip install scipy con éxito (dentro de un virtualenv) después de instalar algunas de sus dependencias, en particular:

$ 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
 33
Author: elaichi,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2010-10-05 16:05:34

Para instalar scipy en windows siga estas instrucciones: -

Paso-1: Presione este enlace http://www.lfd.uci.edu/~gohlke/pythonlibs / #scipy para descargar un scipy .whl file (e. g. scipy-0.17.0-cp34-none-win_amd64.whl).

Paso 2: Vaya al directorio donde está el archivo de descarga desde el símbolo del sistema (nombre de la carpeta del cd ).

Paso 3: Ejecute este comando:

pip install scipy-0.17.0-cp27-none-win_amd64.whl
 22
Author: bharat pk,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-01-27 19:10:02

Probé todo lo anterior y nada funcionó para mí. Esto resolvió todos mis problemas:

pip install -U numpy

pip install -U scipy

Tenga en cuenta que la opción -U para pip installsolicita que el paquete sea actualizado. Sin él, si el paquete ya está instalado pip le informará de esto y saldrá sin hacer nada.

 16
Author: Michael Gogel,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-04-21 14:53:22

Si instalo primero BLAS, LAPACK y GCC Fortran como paquetes del sistema (estoy usando Arch Linux ), puedo instalar SciPy con:

pip install scipy
 13
Author: user437730,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-02-04 20:57:22

En Fedora, esto funciona:

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

Si obtiene algún error public key durante la descarga, agregue --nogpgcheck como parámetro a yum, por ejemplo: yum --nogpgcheck install blas-devel

En Fedora 23 en adelante, utilice dnf en lugar de yum.

 13
Author: shailenTJ,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-02-18 12:27:15

Para los usuarios de Arch Linux:

pip install --user scipy prerequisitos se instalarán los siguientes paquetes Arch:

  • gcc-fortran
  • blas
  • lapack
 7
Author: klingt.net,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-03-25 11:50:57

Complemento para Ubuntu (Ubuntu 10.04 LTS (Lucid Lynx)):

El repositorio se movió, pero un

pip install -e git+http://github.com/scipy/scipy/#egg=scipy

Falló para mí... Con los siguientes pasos, finalmente funcionó (como root en un entorno virtual, donde python3 es un enlace a Python 3.2.2): instala las dependencias de Ubuntu (ver elaichi), clona NumPy y SciPy:

git clone git://github.com/scipy/scipy.git scipy

git clone git://github.com/numpy/numpy.git numpy

Construir NumPy (dentro de la carpeta numpy):

python3 setup.py build --fcompiler=gnu95

Instalar SciPy (dentro de la carpeta scipy):

python3 setup.py install
 3
Author: lokalhorst,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-02-04 20:59:49

En mi caso, no estaba funcionando hasta que también instalé el siguiente paquete : libatlas-base-dev, gfortran

 sudo apt-get install libatlas-base-dev gfortran

Luego ejecute pip install scipy

 3
Author: Pulkit Pahwa,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-09-04 10:02:29
  1. instalar python-3.4.4
  2. scipy-0.15.1-win32-superpack-python3.4
  3. aplicar la siguiente recomendación doc
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
 3
Author: Mushtaq Hussain,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-06-17 15:20:47

Además de todas estas respuestas, Si instala python de 32 bits en su máquina de 64 bits, debe descargar scipy de 32 bits independientemente de su máquina. http://www.lfd.uci.edu / ~gohlke / pythonlibs / En la URL anterior puede descargar los paquetes y el comando es: pip install

 1
Author: Anuroop Pendela,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-09-27 06:57:48

La respuesta es sí, la hay.

Primero puede instalar fácilmente los comandos de uso de numpy:

pip install numpy

Entonces debes instalar mkl, que es requerido por Scipy, y puedes descargarlo aquí

Después de descargar el file_name.whl usted lo instala

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

Entonces en el mismo sitio web se puede descargar scipy-0.18.1-cp35-cp35m-win32.whl

Nota:debe descargar el file_name.whl según su versión de python, si su versión de python es 32bit python3.5 usted debe descargar este, y el "win32" es acerca de su versión de python, no la versión de su sistema operativo.

Luego instale file_name.whl así:

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

Entonces solo hay una cosa más que hacer: comentar una línea specfic o habrá mensajes de error cuando impute el comando "importar scipy".

Así que comenta esta línea

from numpy._distributor_init import NUMPY_MKL  # requires numpy+mkl

En este archivo: your_own_path\lib\site-packages\scipy__init__.py

Entonces puedes usar SciPy :)

Aquí le dice más sobre el último paso.

Aquí es un anwser similar a una pregunta similar.

 1
Author: Statham,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-05-23 12:34:37

Para gentoo, está en el repositorio principal: emerge --ask scipy

 0
Author: automaton,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-04-13 05:02:30

También puede usar esto en Windows con python 3.6 python -m pip install scipy

 0
Author: Ibrahim Isa,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-04-25 22:13:00