安装happiestfuntokenizing后导入happyfuntokenizing报错解决
happiestfuntokenizing 安装后导入报ModuleNotFoundError修复方法
依赖安装命令:
pip install happiestfuntokenizing问题复现:
安装完成后使用如下导入语句时会触发模块找不到的报错:
from happyfuntokenizing import Tokenizer as potts
完整报错信息:
ModuleNotFoundError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_7944/3774479977.py in <module> ----> 1 from happyfuntokenizing import Tokenizer as potts ModuleNotFoundError: No module named 'happyfuntokenizing'
此前检索公开解决方案未找到有效处理方式。
- 修复方案:
报错根因是导入路径书写错误,无需重装依赖,替换为以下导入语句即可正常运行:from happiestfuntokenizing.happiestfuntokenizing import Tokenizer as potts
内容的提问来源于stack exchange,提问作者Clannon Noronha
相关产品推荐
相关产品推荐

