我得到關於Python命令提示符下鍵入這個這個錯誤:進口matplotlib.pyplot如PLT我收到此錯誤使用matplotlib
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import matplotlib.pyplot as plt
File "/Library/Python/2.7/site-packages/matplotlib-1.3.x-py2.7-macosx-10.8-intel.egg/matplotlib/pyplot.py", line 97, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/Library/Python/2.7/site-packages/matplotlib-1.3.x-py2.7-macosx-10.8-intel.egg/matplotlib/backends/__init__.py", line 25, in pylab_setup
globals(),locals(),[backend_name])
File "/Library/Python/2.7/site-packages/matplotlib-1.3.x-py2.7-macosx-10.8-intel.egg/matplotlib/backends/backend_macosx.py", line 21, in <module>
from matplotlib.backends import _macosx
ImportError: dlopen(/Library/Python/2.7/site-packages/matplotlib-1.3.x-py2.7-macosx-10.8-intel.egg/matplotlib/backends/_macosx.so, 2): Library not loaded: /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
Referenced from: /Library/Python/2.7/site-packages/matplotlib-1.3.x-py2.7-macosx-10.8-intel.egg/matplotlib/backends/_macosx.so
Reason: image not found
有人建議我,我怎麼能解決這個問題?我已經安裝了所有與此shell腳本
https://github.com/fonnesbeck/ScipySuperpack
包有什麼,我很想念?任何其他配置?
什麼時候出現此錯誤? –
@ Mr.Squig在python命令提示符下輸入「import matplotlib.pyplot as plt」 –
每當我嘗試使用matplotlib的任何函數(如圖形等)時,都會出現此錯誤... –