Skip to content

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

@dylanmikesell

Description

@dylanmikesell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions