由于需要GLIBC 2.14,来自pylab import *在RHEL 6上失败

时间:2014-08-22 16:36:14

标签: enthought

我怎样才能得到一个有效的pylab导入...我愿意为我的盒子重新编译,但需要知道在哪里将所有这些用于所有用户。请注意,libpng16.so.16需要GLIB2.14,这是原始的#34; trip-up"点。但是,我发现了它的一个版本,现在我被困在这里。这是错误:

In [2]:

from pylab import *

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-de1a8241b951> in <module>()
----> 1 from pylab import *

/users/p/c/pclemins/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pylab.py in <module>()
----> 1 from matplotlib.pylab import *
      2 import matplotlib.pylab
      3 __doc__ = matplotlib.pylab.__doc__

/users/p/c/pclemins/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/pylab.py in <module>()
    224 # make mpl.finance module available for backwards compatability, in case folks
    225 # using pylab interface depended on not having to import it
--> 226 import matplotlib.finance
    227 
    228 from matplotlib.dates import date2num, num2date,\

/users/p/c/pclemins/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/finance.py in <module>()
     21 from matplotlib.dates import date2num
     22 from matplotlib.cbook import iterable, mkdirs
---> 23 from matplotlib.collections import LineCollection, PolyCollection
     24 from matplotlib.colors import colorConverter
     25 from matplotlib.lines import Line2D, TICKLEFT, TICKRIGHT

/users/p/c/pclemins/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/collections.py in <module>()
     21 import matplotlib.artist as artist
     22 from matplotlib.artist import allow_rasterization
---> 23 import matplotlib.backend_bases as backend_bases
     24 import matplotlib.path as mpath
     25 from matplotlib import _path

/users/p/c/pclemins/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/backend_bases.py in <module>()
     48 
     49 import matplotlib.tight_bbox as tight_bbox
---> 50 import matplotlib.textpath as textpath
     51 from matplotlib.path import Path
     52 from matplotlib.cbook import mplDeprecation

/users/p/c/pclemins/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/textpath.py in <module>()
      9 from matplotlib.path import Path
     10 from matplotlib import rcParams
---> 11 import matplotlib.font_manager as font_manager
     12 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, LOAD_NO_HINTING
     13 from matplotlib.ft2font import LOAD_TARGET_LIGHT

/users/p/c/pclemins/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/font_manager.py in <module>()
     51 import matplotlib
     52 from matplotlib import afm
---> 53 from matplotlib import ft2font
     54 from matplotlib import rcParams, get_cachedir
     55 from matplotlib.cbook import is_string_like

ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/libpng16.so.16)

1 个答案:

答案 0 :(得分:5)

显然,您安装了错误版本的libpng16,可能来自rpm或为不同的系统编译,而不是您正在使用的操作系统。

canopy包管理器具有正确的libpng版本,如果你安装它应该可以正常工作。您可以从canopy包管理器gui或通过enpkg libpng命令安装它。 (不幸的是,默认的冠层安装似乎缺少libpng,而它应该被包含在内。)