install-dict-packages sudachi

在Windows 7下的PyCharm中遇到模块'sudachidict_core'未找到和字典安装错误。解决方案是仅安装SudachiPy的核心依赖,避免安装完整或小型字典,以防止额外错误。如果遇到'system.dic'找不到的问题,将其从Python安装目录复制到相应位置或创建软链接。
摘要由CSDN通过智能技术生成

我是在windows7 下pychar 中执行的

  1. 错误信息
Traceback (most recent call last):
  File "C:\Users\lixianwei\venv\lib\site-packages\sudachipy\config.py", line 55, in create_default_link_for_sudachidict_core
    dict_path = Path(import_module('sudachidict').__file__).parent
  File "C:\Users\lixianwei\AppData\Local\Programs\Python\Python37\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'sudachidict'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\lixianwei\venv\lib\site-packages\sudachipy\config.py&#
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值