我试着在64位的windows7的canopy中运行matplotlib。更新canopy中的软件包后,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发布于 2014-06-04 20:20:25
请更新到Canopy 1.4.0,然后退出Canopy,删除C:Users\HOT-GAZ\AppData\Local\Enthought\Canopy\User并重新启动Canopy。
https://stackoverflow.com/questions/24032332
复制相似问题