我在Ubuntu 14.04 LTS中安装python(2.7.6)模块时遇到了麻烦。我刚刚尝试安装模块numpy(和其他),当我导入它时,我有以下输出:
python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/numpy/__init__.py", line 153, in <module>
from . import add_newdocs
File "/usr/lib/python2.7/dist-packages/numpy/add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "/usr/lib/python2.7/dist-packages/numpy/lib/__init__.py", line 18, in <module>
from .polynomial import *
File "/usr/lib/python2.7/dist-packages/numpy/lib/polynomial.py", line 19, in <module>
from numpy.linalg import eigvals, lstsq, inv
File "/usr/lib/python2.7/dist-packages/numpy/linalg/__init__.py", line 50, in <module>
from .linalg import *
File "/usr/lib/python2.7/dist-packages/numpy/linalg/linalg.py", line 29, in <module>
from numpy.linalg import lapack_lite, _umath_linalg
ImportError: /usr/local/bin/gex/libgfortran.so.3: version `GFORTRAN_1.4' not found (required by /usr/lib/liblapack.so.3)
我已经尝试更新,升级,安装pip以及其他许多东西,只是在这里尝试了额外的选项......
有人可以说明问题可能是什么吗?
提前致谢!
干杯
答案 0 :(得分:0)
非常感谢阅读并试图提供帮助的所有人,特别是@jkalden。我设法通过下载包(deb文件)手动重新安装gfortran。一切都很好......到目前为止......!
再次感谢大家的投入。