Ich habe numpy/scipy/matplotlib auf Snow Leopard mit Python 2.6 installiert. Importieren pylab scheint nicht zu funktionieren .. Bei ‚Import pylab‘ nennen, erhalte ich die folgende:Kann pylab nicht importiert werden?
File "<stdin>", line 1, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pylab.py", line 216, in <module>
from matplotlib import mpl # pulls in most modules
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl.py", line 2, in <module>
from matplotlib import axis
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py", line 10, in <module>
import matplotlib.font_manager as font_manager
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py", line 1339, in <module>
_rebuild()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py", line 1326, in _rebuild
fontManager = FontManager()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py", line 1004, in __init__
self.ttffiles = findSystemFonts(paths) + findSystemFonts()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py", line 343, in findSystemFonts
for f in get_fontconfig_fonts(fontext):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/font_manager.py", line 301, in get_fontconfig_fonts
output = pipe.communicate()[0]
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 683, in communicate
stdout = self.stdout.read()
Was soll das? Erwartet Pylab etwas, das ich nicht habe? Es scheint nicht in der Lage zu sein, etwas zu lesen, aber ich verstehe nicht wirklich, was das ist.
Eh? Es gibt keinen tatsächlichen Fehler dort. Hast du den gesamten Traceback eingefügt? –
Das ist der ganze Traceback. Es bleibt solange hängen, bis ich die Tastatur unterbricht. Vielleicht lasse ich es eine Weile sitzen und sehe, ob etwas passiert. Soll dieses Modul lange dauern? – coffee
Haben Sie Freetype 1.4 installiert? es ist für Matplotlib erforderlich. –