Domanda

Sono un Linux n00b e voglio installare SciPy per aiutarmi in un compito a casa.

Questa mi ha confuso più di quanto mi abbia aiutato.

Mi sono guidato sul file INSTALL.txt che ho ricevuto da sourceforge, che 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/

Tramite Synaptic Package Manager ho scaricato tutto questo + IPython.

Mentre immagino che rimarrò bloccato tra voi ragazzi che rispondono alle mie prime domande e finalmente riesco a mettere in moto questa cosa, aggiornerò questo singolo post varie volte.

1a domanda: Guidandomi attraverso questo link ho scaricato sourceforge .tar file con scipy.

Ho estratto i suoi contenuti su / home / antonio / Desktop / Download

Ho eseguito i comandi che appaiono sul link:

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

^ PERCHÉ ??

Perché appare il comando non trovato? Dovrei estrarre il contenuto del file .tar da qualche altra parte?

È stato utile?

Soluzione

Di recente ho installato scipy sul mio sistema Debian / Lenny. Tutto quello che ho fatto è stato installare (usando aptitude) i pacchetti Debian

avvia ipython -pylab in un terminale e tutto funziona alla grande.

Altri suggerimenti

Perché non installi direttamente SciPy? Non è l'ultima versione, ma forse 0.6 è sufficiente per le tue esigenze?

# apt-get install python-scipy

come root o

$ sudo apt-get install python-scipy

Il link ti dice di eseguire

python setup.py build

ma stai eseguendo

setup.py build

Dato che sei un n00b, devi seguire le istruzioni esattamente .

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top