PIL: DLL load failed: specified procedure could no

2019-01-14 15:10发布

I've been beginning to work with images in Python and I wanted to start using PIL (Pillow). To install it, I ran pip install Pillow. When installing, PIL was not previously installed. I also tried uninstalling it and reinstalling it, as well as using pip3 install Pillow.

When I run it in Python, my first line is:

File "C:\Program Files\Python36\lib\site-packages\PIL\Image.py", line 56, in <module>
from . import _imaging as core
ImportError: DLL load failed: The specified procedure could not be found.

I checked the directory, and the file _imaging.cp36-win_amd64.pyd is present under the PIL folder.

Why is this happening if the needed DLL is there? How can I fix it?

7条回答
叛逆
2楼-- · 2019-01-14 16:00

I had the same problem with anaconda 5.0.1, using it with caffe on windows 10. i just did

conda install PIL

it worked for me.

查看更多
登录 后发表回答