无法从anaconda python 3.6中的PIL导入图像执行

时间:2018-06-13 12:10:52

标签: python dll anaconda python-imaging-library

我无法执行以下

from PIL import Image

它返回了我:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "...\Anaconda3\lib\site-packages\PIL\Image.py", line 56, in <
module>
    from . import _imaging as core
ImportError: DLL load failed: The specified module could not be found.

使用安装在anaconda PIL上的4.2.1版本。如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

首先,您可以尝试:

conda update --all

如果没有帮助,这个解决方案适用于很多人:

conda uninstall pillow
pip install pillow

来源:https://github.com/python-pillow/Pillow/issues/2945