我已经在 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 failed: The specified module could not be found.
Run Code Online (Sandbox Code Playgroud)
尝试从 anaconda 卸载该软件包,然后使用 pip 安装它:
conda卸载枕头:
Conda remove Pillow
Run Code Online (Sandbox Code Playgroud)
用 pip 安装枕头:
pip install pillow
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3979 次 |
| 最近记录: |