冠层matplotlib窗口64位

时间:2014-06-04 08:18:20

标签: python numpy matplotlib canopy

我试图在Windows 7 64bit上运行matplotlib。更新了顶篷中的包后,matplotbib无法正常工作。我在包管理器中安装的numpy版本是1.8.0-2。这个问题需要帮助。 matplotlib版本安装1.3.1.-3 我从matplotlib.org的网站上运行了一个动画示例代码。 错误。

ImportError                               Traceback (most recent call last)
C:\Users\HOT-GAZ\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.1.0.1371.win-x86_64\lib\site-packages\IPython\utils\py3compat.pyc in execfile(fname, glob, loc)
    174             else:
    175                 filename = fname
--> 176             exec compile(scripttext, filename, 'exec') in glob, loc
    177     else:
    178         def execfile(fname, *where):

H:\Nauka\nowy.py in <module>()
      1 import numpy as np
----> 2 import matplotlib.pyplot as plt
      3 import matplotlib.animation as animation
      4 
      5 def update_line(num, data, line):

C:\Users\HOT-GAZ\AppData\Local\Enthought\Canopy\User\lib\site-packages\matplotlib\pyplot.py in <module>()
     22 
     23 import matplotlib
---> 24 import matplotlib.colorbar
     25 from matplotlib import _pylab_helpers, interactive
     26 from matplotlib.cbook import dedent, silent_list, is_string_like, is_numlike

C:\Users\HOT-GAZ\AppData\Local\Enthought\Canopy\User\lib\site-packages\matplotlib\colorbar.py in <module>()
     27 import matplotlib.artist as martist
     28 import matplotlib.cbook as cbook
---> 29 import matplotlib.collections as collections
     30 import matplotlib.colors as colors
     31 import matplotlib.contour as contour

C:\Users\HOT-GAZ\AppData\Local\Enthought\Canopy\User\lib\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

C:\Users\HOT-GAZ\AppData\Local\Enthought\Canopy\User\lib\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

C:\Users\HOT-GAZ\AppData\Local\Enthought\Canopy\User\lib\site-packages\matplotlib\textpath.py in <module>()
     12 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, LOAD_NO_HINTING
     13 from matplotlib.ft2font import LOAD_TARGET_LIGHT
---> 14 from matplotlib.mathtext import MathTextParser
     15 import matplotlib.dviread as dviread
     16 from matplotlib.font_manager import FontProperties

C:\Users\HOT-GAZ\AppData\Local\Enthought\Canopy\User\lib\site-packages\matplotlib\mathtext.py in <module>()
     60 
     61 import matplotlib.colors as mcolors
---> 62 import matplotlib._png as _png
     63 ####################
     64 

ImportError: numpy.core.multiarray failed to import

1 个答案:

答案 0 :(得分:0)

请更新至Canopy 1.4.0,然后退出Canopy,删除  C:Users\HOT-GAZ\AppData\Local\Enthought\Canopy\User 并重新启动Canopy。