Instalación de SciPy en Linux Debian
-
03-07-2019 - |
Pregunta
Soy Linux n00b, y quiero instalar SciPy para ayudarme en la tarea.
Esta página me ha confundido más de lo que me ayudó.
Me he estado guiando en el archivo INSTALL.txt que obtuve de sourceforge, que dice
PREREQUISITES
=============
SciPy requires the following software installed:
1) Python__ 2.4.x or newer
Debian packages: python python-dev
Make sure that the Python package distutils is installed before
continuing. For example, in Debian GNU/Linux, distutils is included
in the python-dev package.
Python must also be compiled with the zlib module enabled.
__ http://www.python.org
2) NumPy__ 1.2.0 or newer
Debian package: python-numpy
__ http://www.numpy.org/
3) Complete LAPACK__ library (see NOTES 1, 2, 3)
Debian/Ubuntu packages (g77): atlas3-base atlas3-base-dev
Various SciPy packages do linear algebra computations using the LAPACK
routines. SciPy's setup.py scripts can use number of different LAPACK
library setups, including optimized LAPACK libraries such as ATLAS__ or
the Accelerate/vecLib framework on OS X. The notes below give
more information on how to prepare the build environment so that
SciPy's setup.py scripts can use whatever LAPACK library setup one has.
__ http://www.netlib.org/lapack/
__ http://math-atlas.sourceforge.net/
A través de Synaptic Package Manager descargué todo esto + IPython.
Como supongo, me quedaré atrapado entre ustedes, respondiendo a mis primeras preguntas y finalmente poniendo esto en marcha, actualizaré esta publicación única varias veces.
1ra pregunta: Guiándome a través de este enlace descargué el sourceforge .tar archivo con scipy.
Extraje su contenido en / home / antonio / Desktop / Downloads
Ejecuté los comandos que aparecen en el enlace:
jajaja:/home/antonio/Desktop/Downloads# cd scipy-?.?.?
jajaja:/home/antonio/Desktop/Downloads/scipy-0.7.0# setup.py build
bash: setup.py: command not found
^ POR QUÉ ??
¿Por qué aparece el comando no encontrado? ¿Debo extraer el contenido del archivo .tar en otro lugar?
Solución
Recientemente instalé scipy en mi sistema Debian / Lenny. Todo lo que hice fue instalar (usando aptitude) los paquetes de Debian
inicie ipython -pylab
en una terminal y todo funciona muy bien.
Otros consejos
¿Por qué no instalas SciPy directamente? No es la última versión, pero ¿tal vez 0.6 es suficiente para sus necesidades?
# apt-get install python-scipy
como root o
$ sudo apt-get install python-scipy
El enlace te dice que ejecutes
python setup.py build
pero estás ejecutando
setup.py build
Como eres un n00b, debes seguir las instrucciones exactamente .