我最近升级到Mac OsX El Capitan并发现一些运行python脚本的问题在我升级之前工作得很好。运行我的脚本,它基本上使用matplotlib生成几个图,产生此错误
File "/usr/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 1811, in inner
return func(ax, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/matplotlib/axes/_axes.py", line 3873, in scatter
marker_obj = mmarkers.MarkerStyle(marker)
File "/usr/local/lib/python2.7/site-packages/matplotlib/markers.py", line 171, in __init__
self.set_marker(marker)
File "/usr/local/lib/python2.7/site-packages/matplotlib/markers.py", line 255, in set_marker
self._recache()
File "/usr/local/lib/python2.7/site-packages/matplotlib/markers.py", line 193, in _recache
self._marker_function()
File "/usr/local/lib/python2.7/site-packages/matplotlib/markers.py", line 331, in _set_mathtext_path
usetex=rcParams['text.usetex'])
File "/usr/local/lib/python2.7/site-packages/matplotlib/textpath.py", line 445, in __init__
usetex=usetex)
File "/usr/local/lib/python2.7/site-packages/matplotlib/textpath.py", line 525, in text_get_vertices_codes
verts, codes = text_to_path.get_text_path(prop, s, usetex=True)
File "/usr/local/lib/python2.7/site-packages/matplotlib/textpath.py", line 150, in get_text_path
glyph_info, glyph_map, rects = self.get_glyphs_tex(prop, s)
File "/usr/local/lib/python2.7/site-packages/matplotlib/textpath.py", line 304, in get_glyphs_tex
dviread.find_tex_file('pdftex.map'))
File "/usr/local/lib/python2.7/site-packages/matplotlib/dviread.py", line 864, in find_tex_file
stderr=subprocess.PIPE)
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
我正在使用Python 2.7.11和matplotlib 1.5.0