python - Python import Pillow/PIL 错误,不能 ImportError: cannot import name '_imaging'
问题描述
我已经尝试了一切,将文件添加到我的实际项目中,安装和重新安装 PILLOW。现在实际的 PIL 文件在我的项目文件夹中,我目前有错误:
文件“C:\Users\crowl\Desktop\py project\PIL\Image.py”,第 69 行,来自 . import _imaging as core ImportError: cannot import name '_imaging' from 'PIL' (C:\Users\crowl\Desktop\py project\PIL__init__.py)
我尝试从 PIL 导入 * 导入图像,从 PIL.Image 导入核心作为 _imaging 并且当前使用从 PIL 导入图像。我设法让它在另一台 PC 上工作,只需使用 PIL 文件夹和所有源代码,因为它是一个学校项目,现在我在家,它似乎不起作用。
感谢所有的帮助。
解决方案
推荐阅读
- python - Kmeans 标签返回 NaN 簇
- c - C语言——结构
- android - 如何在 Android 中实现 Firebase 身份验证
- jasmine - 错误:应为条件“匹配 URL:xyz”提供一个匹配请求,但没有找到
- loops - Do While,直到所有观察日期等于 today() sas proc sql
- beautifulsoup - 使用 BeautifulSoup 提取表数据
- javascript - 在 jquery 中查找图像方向?
- node.js - 如何在 AWS Bitnami 服务器上使用 nodejs express 发送静态文件(CSS、js)?
- ios - 将多个自定义 UITableViewCell 链接到单个 xib
- go - Go 中方法的范围是什么?