Pergunta

Eu sou um n00b Linux, e eu quero instalar SciPy para me ajudar em um asignment lição de casa.

Este página confundiu-me mais do que me ajudou.

Eu tenho me orientando sobre o arquivo INSTALL.txt eu tenho de SourceForge, que diz

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/

Via Synaptic Package Manager eu baixei tudo isso + IPython.

Como eu acho que vou ficar preso entre vocês respondendo às minhas primeiras perguntas e finalmente conseguir esta coisa a funcionar, eu vou atualizar este post único várias vezes.

1ª pergunta: Guiando-me através este link Eu baixei o .tar sourceforge arquivo com scipy.

Eu extraí o seu conteúdo em / home / antonio / Desktop / Downloads

Eu corri os comandos que aparecem no 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

^ POR QUE ??

Não Por que ele aparece comando encontrado? Devo extrair o conteúdo do arquivo tar em outro lugar?

Foi útil?

Solução

Eu instalei recentemente scipy no meu sistema Debian / Lenny. Tudo o que fiz foi instalar (usando aptidão) os pacotes Debian

fogo até ipython -pylab em um terminal e tudo funciona muito bem.

Outras dicas

Por que você não basta instalar SciPy diretamente? Não é a versão mais recente, mas talvez 0,6 é o suficiente para você precisa?

# apt-get install python-scipy

como root, ou

$ sudo apt-get install python-scipy

O link diz-lhe para executar

python setup.py build

mas você está executando

setup.py build

Uma vez que você é um n00b, você deve seguir as instruções exatamente .

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top