JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

ddddocr报AttributeError: module ‘PIL.Image‘ has no attribute ‘ANTIALIAS‘

发布时间 2023-08-14 14:50:29作者: 只为。

我用的python版本为3.11.2,运行ddddocr时,报错

原因是在pillow的10.0.0版本中,ANTIALIAS方法被删除

可以把pillow的版本修改为之前的版本

pip uninstall Pillow
pip install Pillow==9.5.0

 

    本栏目推荐文章
  • IDEA项目名称后面出现中括号,模块Modules的名子和文件夹名称不同,可以右键修改名称也可以在File->Project Structure 修改Modules的Name(快捷键ctrl+Shift+Alt+s)
  • Python中出现"No module named 'requests'"的图文解决办法
  • cdn引入vue后报错无法识路径 Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".
  • SpringBoot配置报错:Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class
  • vue报错:Module parse failed: Unexpected token (5:2) You may need an appropriate loader to handle this file type.
  • Attribute 和 Property 的区别
  • 多个子项目共用根级node_modules
  • Java中的模块(Module)入门介绍
  • python找不到包的总结: ImportError: No module named
  • Python中numpy出现has no attribute '_no_nep50_warning'错误的一个解决方案
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们