最近使用Python调用Pillow时报错,代码就两行:

from PIL import Imageprint("PyCharm")

报错如下:

Traceback (most recent call last):
  File "C:\Users\Administrator\PycharmProjects\pythonProject\main.py", line 5, in <module>
    from PIL import Image
  File "D:\Python\lib\site-packages\PIL\Image.py", line 94, in <module>
    from . import _imaging as core
ImportError: DLL load failed while importing _imaging: 找不到指定的程序。

Python版本:3.9.0,Pillow:8.4.0

解决方法:安装旧版Python,我安装的是3.8.2

再次编译运行,不报错了。

D:\Python38\python.exe C:/Users/Administrator/PycharmProjects/pythonProject/main.py
PyCharm进程已结束,退出代码为 0

困扰了我一天多的问题,在这里写一下,希望帮帮有需要的人。

Python使用Pillow包报错 ImportError: DLL load failed while importing _imaging: 找不到指定的程序。相关推荐

  1. 使用wxauto出现ImportError: DLL load failed while importing win32gui: 找不到指定的程序报错的解决方案

    文章目录 背景 错误提示 解决方案 建议关注我的 微信公众号:破壳Ai,分享最佳学习路径.教程和资源.成长路上,我陪你. 背景 利用 wxauto 开发微信机器人,Pycharm 中运行程序时出错 错 ...

  2. 【问题记录】ImportError: DLL load failed while importing _imaging: 找不到指定的模块

    在 windows 上使用 matplotlib 包的时候报错如下: ImportError: DLL load failed while importing _imaging: 找不到指定的模块. ...

  3. import statsmodels.api as sm 时 ImportError: DLL load failed while importing _arpack: 找不到指定的程序。

    import statsmodels.api as sm 时 报错如下: 解决过程曲折,大致就是 scipy 版本与 statsmodels 的有些方法 不兼容,scipy==1.6.0后,问题解决了 ...

  4. Django终端运行报错:ImportError: DLL load failed while importing _sqlite3: 找不到指定的模块。

    在pycharm运行没问题,但是在终端cmd或Powershell就会出错,如下: Traceback (most recent call last):File ".\manage.py&q ...

  5. ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块(pyinstaller打包的问题)

    本人环境配置: RTX3060 Win10 cuda11.1 Python3.8 Pytorch1.7.1 问题描述 本人需要将有导入torch包的python文件通过pyinstaller打包生成e ...

  6. [Win11] ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块 Conda无法激活环境

    文章目录 1 报错 2 解决 参考 1 报错 Traceback (most recent call last):File "<stdin>", line 1, in ...

  7. 【BUG】DLL load failed while importing pyopenpose: 找不到指定的模块

    问题: ImportError: DLL load failed while importing pyopenpose: 找不到指定的模块. 解决方法: 1.把build\bin里面的全部dll,复制 ...

  8. 运行 skimage 报错ImportError: DLL load failed:找不到指定模块

    经常遇到的一个问题 运行 skimage 报错ImportError: DLL load failed:找不到指定模块,花了2个小时逐个排查,以及网上找原因验证,最终解决了. 通过一下安装仍会报错 p ...

  9. jupyter notebook出现DLL load failed while importing _multiarray_umath: 找不到指定的模块

    安装gpu版本的pytorch之后,在pycharm上测试没出现问题而在jupyter notebook却出现问题 问题描述: import torch E:\Miniconda3\envs\d2l\ ...

最新文章

  1. IEEE迎来首位华人主席,马里兰大学终身教授刘国瑞当选
  2. 一行代码:你的纯文本秒变Markdown
  3. 细说Django的admin
  4. StructureMap 代码分析之Widget 之Registry 分析 (1)
  5. 算法效果AB测试中的PV-UV不对称性
  6. 树结构之树和二叉树的概念以及如何用面向对象思想进行结构定义01
  7. 【期望】【高斯消元】图上游走(金牌导航 期望-6)
  8. 计算机网络应用简介_计算机网络简介
  9. c语言程序输出一个桌子图案,几道程序题,请高手帮帮忙吧
  10. java 路径通配符_java实现路径通配符*,**,?
  11. 单例模式、使用getInstance()方法的原因及作用
  12. mysql查询id为5的数据类型_MySql学习05---数据类型
  13. 终极算法【3】——符号学派
  14. Unity获得汉字拼音或首字母
  15. Landlock:一种新型Linux安全模块
  16. 010Editor相关
  17. ignite配置文件编写
  18. 51la V6蜘蛛统计功能上新
  19. 接口测试需要怎么做?
  20. PyQt5桌面应用开发----环境安装配置及第一个桌面应用程序

热门文章

  1. 电子烟哪个牌子比较好 好用的电子烟品牌推荐
  2. 正确姿势:回归系数的解释与评估
  3. 基于串口通信技术——让数码管显示的数据发送给电脑,电脑控制单片机外设——15单片机
  4. 基于汉王云API的人脸识别
  5. win2008 php死机,windows 2008 server 死机自动重起
  6. 解决TypeError at /xadmin/ login() got an unexpected keyword argument 'extra_context'
  7. how to telnet a phone?
  8. python抠图_别再用PS了,我用五行Python代码就实现了批量抠图
  9. 任务计划重启计算机服务器,Windows2003服务器使用计划任务重新启动计算机
  10. 管理信息系统5种主要开发方法