我已经在 Anaconda 3 中运行了这个:
from PIL import Image
Run Code Online (Sandbox Code Playgroud)
并且显示DLL错误。我在Stackoverflow上检查了解决方案并做了相应的处理,但也出现了错误。
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 …Run Code Online (Sandbox Code Playgroud)