Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用cpca过程中,报错缺少某些库,如下 #107

Open
yanjinping-pig opened this issue Feb 16, 2022 · 1 comment
Open

使用cpca过程中,报错缺少某些库,如下 #107

yanjinping-pig opened this issue Feb 16, 2022 · 1 comment

Comments

@yanjinping-pig
Copy link

Traceback (most recent call last):
File "D:\pythonProject\huafen.py", line 2, in
import cpca
File "D:\Python-3.9\lib\site-packages\cpca_init_.py", line 7, in
from .matcher import Matcher
File "D:\Python-3.9\lib\site-packages\cpca\matcher.py", line 1, in
import ahocorasick
ModuleNotFoundError: No module named 'ahocorasick'

@MrCat9
Copy link

MrCat9 commented Feb 21, 2022

这个是AC自动机的python实现库。

conda install -c http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ pyahocorasick  # 先安装pyahocorasick
pip install -i https://pypi.doubanio.com/simple/ cpca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants