在 Python3 中导入 pdfplumber 时遇到错误,表明模块 chardet 丢失。但是,从 cmd 运行 pip list 确认已安装包,版本 3.0.4。有人有类似的经历吗?有什么决议吗?
错误信息:
~\AppData\Roaming\Python\Python37\site-packages\pdfminer\utils.py in <module>
3 """
4 import struct
----> 5 import chardet # For str encoding detection
6
7 # from sys import maxint as INF doesn't work anymore under Python3, but PDF
ModuleNotFoundError: No module named 'chardet'