网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  ImportError: cannot import name PDFDocument

ImportError: cannot import name PDFDocument

分类: IT文章 • 2023-12-16 22:29:37

明明已经安装了pdfminer3k,通过 

pip install pdfminer3k

但是出现了如下错误:

ImportError: cannot import name PDFDocument

这种问题的解决办法是:

换一种引入的方式,如下所示:

from pdfminer.pdfparser import PDFParser
from pdfminer.pdfdocument import PDFDocument
from pdfminer.pdfpage import PDFPage
from pdfminer.pdfpage import PDFTextExtractionNotAllowed

问题可以解决,亲身体验。

相关推荐

  • python scrapy cannot import name xmlrpc_client的解决方案,解决办法
  • ImportError : cannot import name main
  • 转pip更新后ImportError: cannot import name ‘main' 更新pip后,报出:ImportError: cannot import name ‘main'
  • Python 解决: from pip import main ImportError: cannot import name 'main'
  • 解决 ImportError: cannot import name pywrap_tensorflow
  • django 提醒ImportError: cannot import name json_response
  • 报错 ImportError: cannot import name 'AsyncContextManager' ImportError: cannot import name 'AsyncContextManager'
  • ImportError: cannot import name UnrewindableBodyError
  • pyhanlp安装成功,import导入失败,出现:importerror: cannot import name 'jvmnotfoundexception'
  • ImportError: cannot import name 'GMM'
  • python代码中,添加子进程的运行
  • js实现的hashMap
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号