Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting below error while import matplotlib.pyplot as plt #95

Open
Rohit24-spec opened this issue Jul 6, 2024 · 1 comment
Open

Getting below error while import matplotlib.pyplot as plt #95

Rohit24-spec opened this issue Jul 6, 2024 · 1 comment

Comments

@Rohit24-spec
Copy link

Getting below error while import matplotlib.pyplot as plt

ImportError Traceback (most recent call last)
Cell In[7], line 1
----> 1 import matplotlib.pyplot as plt

File ~\Desktop\smart_project\env\Lib\site-packages\matplotlib_init_.py:161
157 from packaging.version import parse as parse_version
159 # cbook must import matplotlib only within function
160 # definitions, so it is safe to import from it here.
--> 161 from . import _api, _version, cbook, _docstring, rcsetup
162 from matplotlib.cbook import sanitize_sequence
163 from matplotlib._api import MatplotlibDeprecationWarning

File ~\Desktop\smart_project\env\Lib\site-packages\matplotlib\rcsetup.py:27
25 from matplotlib import _api, cbook
26 from matplotlib.cbook import ls_mapper
---> 27 from matplotlib.colors import Colormap, is_color_like
28 from matplotlib._fontconfig_pattern import parse_fontconfig_pattern
29 from matplotlib._enums import JoinStyle, CapStyle

File ~\Desktop\smart_project\env\Lib\site-packages\matplotlib\colors.py:52
49 from numbers import Real
50 import re
---> 52 from PIL import Image
53 from PIL.PngImagePlugin import PngInfo
55 import matplotlib as mpl

File ~\Desktop\smart_project\env\Lib\site-packages\PIL\Image.py:88
79 MAX_IMAGE_PIXELS: int | None = int(1024 * 1024 * 1024 // 4 // 3)
82 try:
83 # If the _imaging C module is not present, Pillow will not load.
84 # Note that other modules should not refer to _imaging directly;
85 # import Image and use the Image.core variable instead.
86 # Also note that Image.core is not a publicly documented interface,
87 # and should be considered private and subject to change.
---> 88 from . import _imaging as core
90 if version != getattr(core, "PILLOW_VERSION", None):
91 msg = (
92 "The _imaging extension was built for another version of Pillow or PIL:\n"
93 f"Core version: {getattr(core, 'PILLOW_VERSION', None)}\n"
94 f"Pillow version: {version}"
95 )

ImportError: DLL load failed while importing _imaging: The specified module could not be found.

@kRiShNa-429407
Copy link

If you are on Discord Server then check a thread .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants