Reputation: 21
I have run this in Anaconda 3:
from PIL import Image
and it shows DLL error. I check for solution on Stackoverflow and did accordingly but then also there is error.
ImportError Traceback (most recent call last)
<ipython-input-14-b7f01c2f8cfe> in <module>()
----> 1 from PIL import Image
~\Anaconda3\envs\tensorflow\lib\site-packages\PIL\Image.py in <module>()
56 # Also note that Image.core is not a publicly documented interface,
57 # and should be considered private and subject to change.
---> 58 from . import _imaging as core
59 if PILLOW_VERSION != getattr(core, 'PILLOW_VERSION', None):
60 raise ImportError("The _imaging extension was built for another "
ImportError: DLL load failed: The specified module could not be found.
Upvotes: 2
Views: 4033
Reputation: 809
Try to uninstall the package from anaconda and then install it with pip:
conda uninstall pillow:
Conda remove Pillow
Install pillow with pip:
pip install pillow
Upvotes: 6