如何安装numpy阿

软件和网站开发以及相关技术探讨
回复
nangergong
帖子: 103
注册时间: 2008-09-19 3:26

如何安装numpy阿

#1

帖子 nangergong » 2009-07-05 17:58

要求是,
To build with g77:

python setup.py build --fcompiler=gnu

To build with gfortran:

python setup.py build --fcompiler=gnu95

还说要检查 the ABI of blas/lapack/atlas
什么事blas/lapack/atlas阿?

下面是 用上面两个命令行执行中的错误信息
numpy.distutils.fcompiler.CompilerNotFound: gnu95: f90 nor f77


Could not locate executable g77
Could not locate executable f77
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize LaheyFCompiler
Could not locate executable lf95
customize PGroupFCompiler
Could not locate executable pgf90
Could not locate executable pgf77
customize AbsoftFCompiler
Could not locate executable f90
customize NAGFCompiler
Could not locate executable f95
customize VastFCompiler
customize GnuFCompiler
customize CompaqFCompiler
Could not locate executable fort
customize IntelItaniumFCompiler
Could not locate executable efort
Could not locate executable efc
customize IntelEM64TFCompiler
customize Gnu95FCompiler
Could not locate executable gfortran
customize G95FCompiler
Could not locate executable g95
don't know how to compile Fortran code on platform 'posix'
dbzhang800
帖子: 3182
注册时间: 2006-03-10 15:10
来自: xi'an China
联系:

Re: 如何安装numpy阿

#2

帖子 dbzhang800 » 2009-07-05 19:53

源中没有么? 为什么要自己编译呢?
头像
anticlockwise
帖子: 2394
注册时间: 2007-03-01 20:46
来自: 湖南长沙

Re: 如何安装numpy阿

#3

帖子 anticlockwise » 2009-07-06 19:31

想要自己编译的话:

sudo apt-get build-dep python-numpy

就会安装好依赖包,然后再编译

其实源中的已经够新了:sudo apt-get install python-numpy
回复