我在 ARM 处理器上安装了 python 2.4,并将我需要的所有库都移到了这台机器上,包括用于 numpy 1.6.2 的库。当我尝试导入 numpy 时,我得到以下信息:
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/numpy/__init__.py", line 137, in ?
import add_newdocs
File "/usr/lib/python2.4/site-packages/numpy/add_newdocs.py", line 9, in ?
from numpy.lib import add_newdoc
File "/usr/lib/python2.4/site-packages/numpy/lib/__init__.py", line 4, in ?
from type_check import *
File "/usr/lib/python2.4/site-packages/numpy/lib/type_check.py", line 8, in ?
import numpy.core.numeric as _nx
File "/usr/lib/python2.4/site-packages/numpy/core/__init__.py", line 5, in ?
import multiarray
ImportError: /usr/lib/python2.4/site-packages/numpy/core/multiarray.so: cannot open shared object file: No such file or directory
当我尝试查看文件是否存在时,我得到:
# ls /usr/lib/python2.4/site-packages/numpy/core/ | grep multi
multiarray.so
一般来说,我对 python 还是很陌生,不知道为什么会出现这个错误。有什么建议么?