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

Pillow version issue on Windows 10 with conda-forge #1

Open
dylanmikesell opened this issue Mar 17, 2023 · 0 comments
Open

Pillow version issue on Windows 10 with conda-forge #1

dylanmikesell opened this issue Mar 17, 2023 · 0 comments

Comments

@dylanmikesell
Copy link

FYI, in case others have this issue.

I installed things on Windows 10 using Anaconda, I am running jupyter notebooks in VScode.

I ran into one issue with both of the example codes to run.

During the installation of someof the packages, specifically following the line

conda install numpy scipy pandas scikit-learn matplotlib seaborn pytorc

The pillow version that is installed is 8.4.0

pillow conda-forge/win-64::pillow-8.4.0-py310h22f3323_0

This caused problems with the obspy results when trying to plot (st.plot()) the data in the example, and when trying to download the MNIST data. I got the following error.

...
File [c:\Users\DMi\Anaconda3\envs\spin-ml\lib\site-packages\IPython\core\interactiveshell.py:3540](file:///C:/Users/DMi/Anaconda3/envs/spin-ml/lib/site-packages/IPython/core/interactiveshell.py:3540), in InteractiveShell.enable_matplotlib(self, gui)
...
    119             f"Core version: {getattr(core, 'PILLOW_VERSION', None)}\n"
    120             f"Pillow version: {__version__}"
    121         )

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

The fix was to install pillow 9.9.0 with pip.

pip install pillow==9.0.0

This fixed the issue and things worked fine afterwards.

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

1 participant