|
rt
我编译安装numpy,没有出错信息。python里面能够import numpy,但是安装scipy时就会报错,- Traceback (most recent call last):
- File "./setup.py", line 55, in ?
- setup_package()
- File "./setup.py", line 28, in setup_package
- from numpy.distutils.core import setup
- File "/usr/lib/python2.4/site-packages/numpy/__init__.py", line 39, in ?
- import linalg
- File "/usr/lib/python2.4/site-packages/numpy/linalg/__init__.py", line 4, in ?
- from linalg import *
- File "/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py", line 25, in ?
- from numpy.linalg import lapack_lite
- ImportError: /usr/lib/python2.4/site-packages/numpy/linalg/lapack_lite.so: undefined symbol: _gfortran_filename
复制代码
然后在python里面from numpy import linalg报告同样的错误,应该是在numpy编译的时候就错了。google了一下,发现有人建议不要用gcc4,而要用gcc3来编译这套系统(numpy/scipy/atlas)。如果有人用gcc4编译成功,请分享一下经验。谢谢。 |
|