简体   繁体   English

从 PIL 导入图像 - DLL 导入 _imaging 时加载失败

[英]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.

相关问题 导入 _imaging 时 DLL 加载失败: - DLL load failed while importing _imaging: ImportError:DLL加载失败:找不到指定的模块。 尝试“从PIL导入图像”时 - ImportError: DLL load failed: The specified module could not be found. when trying to “from PIL import Image” 无法从 PIL 导入图像 - Cannot import imaging from PIL 无法导入PIL的“_imaging”模块:DLL加载失败:找不到指定的模块 - The '_imaging' module for the PIL could not be imported: DLL load failed: The specified module could not be found 在我的 conda 环境中导入 matplotlib 时出现导入错误:无法从“PIL”导入名称“_imaging” - ImportError when importing matplotlib in my conda environment: cannot import name '_imaging' from 'PIL' ImportError:无法从 PIL 导入名称映像 - ImportError:cannot import name imaging from PIL 无法从“PIL”导入名称“_imaging” - Cannot import name '_imaging' from 'PIL' 枕头:无法从“PIL”导入名称“_imaging” - pillow: cannot import name '_imaging' from 'PIL' 导入Python Imaging Library时出现DLL错误 - DLL error while importing the Python Imaging Library ImportError:无法导入在tensorflow上加载图像文件所需的Python Imaging Library(PIL) - ImportError: Could not import the Python Imaging Library (PIL) required to load image files on tensorflow
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM