找不到 langdetect 模块

问题描述 投票:0回答:0

请帮忙。 我在pycharm终端安装了langdetect "pip install langdetect",但是在使用的时候,出现ModuleNotFoundError的错误:No module named 'langdetect.如何解决问题?

from langdetect import detect

text = input('text: ')
print(detect(text))

结果:

ModuleNotFoundError: No module named 'langdetect'

python
© www.soinside.com 2019 - 2024. All rights reserved.