【问题标题】:Installing SciPy on Linux Debian在 Linux Debian 上安装 SciPy
【发布时间】:2010-10-10 16:09:38
【问题描述】:

我是 Linux n00b,我想安装 SciPy 来帮助我完成家庭作业。

这个page 让我感到困惑而不是帮助我。

我一直在指导自己使用从 sourceforge 获得的 INSTALL.txt 文件,上面写着

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/

通过 Synaptic 包管理器,我下载了所有这些 + IPython。

我想我会在你们回答我的第一个问题和最终让这个东西启动并运行之间陷入困境,我会多次更新这篇文章。

第一个问题: 通过this link 引导自己,我用 scipy 下载了 sourceforge .tar 文件。

我在 /home/antonio/Desktop/Downloads 上提取了它的内容

我运行了链接上显示的命令:

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

^ 为什么??

为什么会出现command not found?我应该在其他地方提取 .tar 文件的内容吗?

【问题讨论】:

    标签: installation debian scipy


    【解决方案1】:

    我最近在我的 Debian/Lenny 系统上安装了 scipy。 我所做的只是安装(使用 aptitude)Debian 软件包

    在终端中启动ipython -pylab,一切正常。

    【讨论】:

      【解决方案2】:

      为什么不直接安装 SciPy?不是最新版本,不过0.6可能就够你用了吧?

      # apt-get install python-scipy
      

      作为根用户,或

      $ sudo apt-get install python-scipy
      

      【讨论】:

        【解决方案3】:

        链接告诉你执行

        python setup.py build
        

        但你正在执行

        setup.py build
        

        由于您是 n00b,因此您必须完全按照说明操作

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2013-12-03
          • 1970-01-01
          • 1970-01-01
          • 2013-06-30
          • 2013-11-03
          • 2021-12-19
          相关资源
          最近更新 更多