[英]from PIL import Image - DLL load failed while importing _imaging
I'm on windows 10 using Python 3.9.12 and pillow-9.3.0 and having some issues while trying to use from PIL import Image
.我在 windows 10 使用 Python 3.9.12 和 pillow-9.3.0 并在尝试使用from PIL import Image
时遇到一些问题。
Error i'm getting is: ImportError: DLL load failed while importing _imaging: The specified module could not be found.我得到的错误是:导入错误:DLL 导入_imaging 时加载失败:找不到指定的模块。
Anyone has an idea how to resolve?任何人都知道如何解决?
reinstalled Python 3.9.12 tried installing / uninstalling multiple versions of Pillow:8.3.2 & 8.4 & 9.0 & 9.3重新安装 Python 3.9.12 尝试安装/卸载多个版本的 Pillow:8.3.2 & 8.4 & 9.0 & 9.3
Update your python version to 3.11
将您的 python 版本更新到3.11
Because Pillow 3.9.0
was builted with python 3.11 beta
因为Pillow 3.9.0
是用python 3.11 beta
的
If you're using chocolatey
as package manager use如果您使用chocolatey
作为 package 经理,请使用
$ choco upgrade python -y
If you're not using a package manager, download and install python from official site如果您没有使用 package 管理器,请从官方网站下载并安装 python
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.