在OSX 10.6.8上安装matplotlib.\u png时出现问题
我尝试通过pip和常规python setup.py方式安装matplotlib,这两种方法的结果似乎都是成功的安装。满足所有依赖项(包括libpng) 而我可以使用在OSX 10.6.8上安装matplotlib.\u png时出现问题,matplotlib,osx-snow-leopard,Matplotlib,Osx Snow Leopard,我尝试通过pip和常规python setup.py方式安装matplotlib,这两种方法的结果似乎都是成功的安装。满足所有依赖项(包括libpng) 而我可以使用 import matplotlib 当我尝试导入pylab(或matplotlib.pyplot)时,我得到以下结果 Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "hel
import matplotlib
当我尝试导入pylab(或matplotlib.pyplot)时,我得到以下结果
Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylab
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/pylab.py", line 222, in <module>
from matplotlib import mpl # pulls in most modules
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl.py", line 2, in <module>
from matplotlib import axis
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axis.py", line 14, in <module>
import matplotlib.text as mtext
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/text.py", line 29, in <module>
from matplotlib.backend_bases import RendererBase
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backend_bases.py", line 47, in <module>
import matplotlib.textpath as textpath
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/textpath.py", line 11, in <module>
from matplotlib.mathtext import MathTextParser
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mathtext.py", line 61, in <module>
import matplotlib._png as _png
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/_png.so, 2): Symbol not found: _png_create_info_struct
Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/_png.so
Expected in: dynamic lookup
Python 2.6.4(r264:75821M,2009年10月27日,19:48:32)
[GCC 4.0.1(苹果公司5493版)]关于达尔文
有关详细信息,请键入“帮助”、“版权”、“信用证”或“许可证”。
>>>进口派拉布
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site packages/pylab.py”,第1行,在
从matplotlib.pylab导入*
文件“/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site packages/matplotlib/pylab.py”,第222行,在
从matplotlib导入mpl#拉入大多数模块
文件“/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site packages/matplotlib/mpl.py”,第2行,在
从matplotlib导入轴
文件“/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site packages/matplotlib/axis.py”,第14行,在
将matplotlib.text导入为多行文字
文件“/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site packages/matplotlib/text.py”,第29行,在
从matplotlib.backend_base导入RenderBase
文件“/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site packages/matplotlib/backend_base.py”,第47行,在
将matplotlib.textpath导入为textpath
文件“/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site packages/matplotlib/textpath.py”,中的第11行
从matplotlib.mathtext导入MathTextParser
文件“/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site packages/matplotlib/mathtext.py”,第61行,在
将matplotlib.\u png导入为\u png
ImportError:dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib//\u png.so,2):未找到符号:\u png\u create\u info\u struct
引用自:/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib//u png.so
应为:动态查找
我试过了,但这似乎不能解决问题
我错过了什么