1 | import matplotlib |
---|
2 | |
---|
3 | --------------------------------------------------------------------------- |
---|
4 | ImportError Traceback (most recent call last) |
---|
5 | Input In [156], in <module> |
---|
6 | ----> 1 import matplotlib |
---|
7 | |
---|
8 | File /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/matplotlib/__init__.py:109, in <module> |
---|
9 | 105 from packaging.version import parse as parse_version |
---|
10 | 107 # cbook must import matplotlib only within function |
---|
11 | 108 # definitions, so it is safe to import from it here. |
---|
12 | --> 109 from . import _api, _version, cbook, docstring, rcsetup |
---|
13 | 110 from matplotlib.cbook import MatplotlibDeprecationWarning, sanitize_sequence |
---|
14 | 111 from matplotlib.cbook import mplDeprecation # deprecated |
---|
15 | |
---|
16 | File /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/matplotlib/cbook/__init__.py:31, in <module> |
---|
17 | 28 import numpy as np |
---|
18 | 30 import matplotlib |
---|
19 | ---> 31 from matplotlib import _api, _c_internal_utils |
---|
20 | 32 from matplotlib._api.deprecation import ( |
---|
21 | 33 MatplotlibDeprecationWarning, mplDeprecation) |
---|
22 | 36 @_api.deprecated("3.4") |
---|
23 | 37 def deprecated(*args, **kwargs): |
---|
24 | |
---|
25 | ImportError: cannot import name '_c_internal_utils' from partially initialized module 'matplotlib' (most likely due to a circular import) (/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/matplotlib/__init__.py) |
---|