gpt4 book ai didi

python - anaconda3导入错误: DLL load failed: The specified module could not be found

转载 作者:太空宇宙 更新时间:2023-11-04 09:45:37 25 4
gpt4 key购买 nike

我在 Anaconda 3 中运行过这个:

from PIL import Image

它显示 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.

最佳答案

尝试从anaconda卸载包,然后用pip安装:

conda 卸载枕头:

Conda remove Pillow

用 pip 安装枕头:

pip install pillow

关于python - anaconda3导入错误: DLL load failed: The specified module could not be found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49942388/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com