You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into the following import error. So, what is the version of Pillow that I need to use?
C:\17Python.exe
Traceback (most recent call last):
File "CMH17Python.py", line 13, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "output.py", line 468, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "matplotlib\__init__.py", line 161, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "matplotlib\rcsetup.py", line 27, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "matplotlib\colors.py", line 52, in <module>
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "PIL\Image.py", line 84, in <module>ImportError: DLL load failed while importing _imaging: The specified module could not be found.
[10900] Failed to execute script 'CMH17Python' due to unhandled exception!
pip show Pillow
Name: pillow
Version: 11.1.0
Summary: Python Imaging Library (Fork)
Home-page:
Author:
Author-email: "Jeffrey A. Clark" <[[email protected]](mailto:[email protected])>
License: MIT-CMU
Location: C:\Users\jchavezsalas\AppData\Roaming\Python\Python311\site-packages
Requires:
Required-by: bokeh, datashader, imageio, matplotlib, scikit-image, streamlit
Note: you may need to restart the kernel to use updated packages.
pip show matplotlib
Name: matplotlib
Version: 3.8.0
Summary: Python plotting package
Home-page: https://matplotlib.org/
Author: John D. Hunter, Michael Droettboom
Author-email: [[email protected]](mailto:[email protected])
License: PSF
Location: C:\ProgramData\anaconda3\Lib\site-packages
Requires: contourpy, cycler, fonttools, kiwisolver, numpy, packaging, pillow, pyparsing, python-dateutil
Required-by: seaborn
Note: you may need to restart the kernel to use updated packages.
The text was updated successfully, but these errors were encountered:
Hi. How did you install Pillow? I would guess that this actually has nothing to do with matplotlib, but actually will just fail with from PIL import Image.
Could you
uninstall Pillow,
make sure that it is uninstalled by checking that you receive a ModuleNotFoundError when you try to import it in Python,
and then try to install it again? If things still don't work after that, could you copy and paste your full install output here?
radarhere
changed the title
matlab and pillow compatibility
matplotlib and pillow compatibility
Jan 8, 2025
I ran into the following import error. So, what is the version of Pillow that I need to use?
The text was updated successfully, but these errors were encountered: