Import Python导入PDFPL错误“;ModuleNotFoundError:没有名为';chardet'&引用;

Import Python导入PDFPL错误“;ModuleNotFoundError:没有名为';chardet'&引用;,import,python-3.7,modulenotfounderror,chardet,Import,Python 3.7,Modulenotfounderror,Chardet,我在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

我在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'
~\AppData\Roaming\Python\Python37\site packages\pdfminer\utils.py in
3 """
4导入结构
---->5导入chardet#用于str编码检测
6.
7#从sys导入maxint作为INF在Python3下不再工作,但是PDF
ModuleNotFoundError:没有名为“chardet”的模块