-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Labels
Milestone
Description
Python 3.5, OS X
Launch ipython in the terminal, enter:
import matplotlib.pyplot as plt
returns
ImportError: cannot import name '_macosx'
Much bigger surprise : there is no error if I enter the command via a jupyter notebook. And the namespace is loaded in the notebook - i can tab complete plt.<tab>
And __version__ returns '2.0.0rc1' in both terminal and a notebook (I can import matplotlib without error in the terminal)
The error definitely didn't occur prior to installing 2.0.0rc1
The trace is
ImportError Traceback (most recent call last)
<ipython-input-1-eff513f636fd> in <module>()
----> 1 import matplotlib.pyplot as plt
/Users/ChristopherShort/anaconda3/lib/python3.5/site-packages/matplotlib/pyplot.py in <module>()
113
114 from matplotlib.backends import pylab_setup
--> 115 _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
116
117 _IP_REGISTERED = None
/Users/ChristopherShort/anaconda3/lib/python3.5/site-packages/matplotlib/backends/__init__.py in pylab_setup()
30 # imports. 0 means only perform absolute imports.
31 backend_mod = __import__(backend_name,
---> 32 globals(),locals(),[backend_name],0)
33
34 # Things we pull in from all backends
/Users/ChristopherShort/anaconda3/lib/python3.5/site-packages/matplotlib/backends/backend_macosx.py in <module>()
17
18 import matplotlib
---> 19 from matplotlib.backends import _macosx
20
21 from .backend_agg import RendererAgg, FigureCanvasAgg
ImportError: cannot import name '_macosx'
Reactions are currently unavailable