python使用百度OCR识别时报错
ModuleNotFoundError Traceback (most recent call last) Cell In[7], line 1 ----> 1 from aip import AipOcr 3 """ 你的 APPID AK SK """ 4 APP_ID = '' File F:\Python\Python310\lib\site-packages\aip\__init__.py:7 2 """ 3 aip public 4 """ 6 from .ocr import AipOcr ----> 7 from .nlp import AipNlp 8 from .face import AipFace 9 from .imagecensor import AipImageCensor File F:\Python\Python310\lib\site-packages\aip\nlp.py:16 14 from .base import urlencode 15 from .base import quote ---> 16 import chardet 19 class AipNlp(AipBase): 20 """ 21 自然语言处理 22 """ ModuleNotFoundError: No module named 'chardet'
使用 pip install chardet
安装一下