ModuleNotFoundError: No module named ‘ahocorasick‘,
Install:
pip install pyahocorasick -i HTTPS://mirrors.aliyun.com/pypi/simple/
The following are the errors I encountered during installation:
error: Microsoft Visual C + + 14.0 is required. Get it with "Microsoft Visual C + + build tools,
Microsoft Visual C + + 14.0 needs to be installed
Recently, I was engaged in the knowledge mapping of natural language processing
but when building the system, I used a AC automaton word filtering
, which is to remove sensitive words, such as
these sensitive words, which need to be replaced by some implied words or symbols such as * *. There are many ways to do this
- 1, AC automata
- 2, DFA filtering algorithm
- 3, replace filtering
- 4, regular expression filtering
for AC automata filtering, you need to use ahocorasick
this library, now pyahocorasick
pip install pyahocorasick -i HTTPS://mirrors.aliyun.com/pypi/simple/
However, when installing pyahocorasick, it reported an error
that we need to install it
This is recommended to you error: Microsoft Visual C + + 14.0 is required. Get it with “Microsoft Visual C + + build tools, pro test 100% installation
it is offline installation, there will be no damage to the installation package;
The following is my successful installation of pyahocorasick:
Read More:
- ModuleNotFoundError: No module named xxx
- [Solved] ModuleNotFoundError: No module named ‘win32api’
- ModuleNotFoundError: No module named ‘MySQLdb‘
- ModuleNotFoundError: No module named ‘notebook‘
- ModuleNotFoundError: No module named ‘tensorboardX‘
- ModuleNotFoundError: No module named ‘apt_pkg‘
- ModuleNotFoundError: No module named ‘tensorflow_core.estimator‘
- Modulenotfounderror: no module named ‘CV2’ – (version problem)
- ModuleNotFoundError: No module named ‘mmcv._ext
- Mmdet error modulenotfounderror: no module named ‘mmcv_ ext‘
- ModuleNotFoundError: No module named ‘numpy.testing.nosetester‘
- ModuleNotFoundError: No module named ‘sklearn.datasets.samples_generator‘
- Jenkins reported an error modulenotfounderror: no module named filename solution
- Error importing keras in jupyter Notebook: modulenotfounderror: no module named ‘keras’ solution
- Tensorflow operation report error modulenotfounderror: no module named ‘tensorflow. Python. Types’ solution
- Module not found error: the solution to the problem of no module named ‘MySQL’
- Module not founderror: no module named ‘nets.ssd‘
- ImportError: No module named indexes.base
- Processing method of PIP exception no module named ‘pip’
- How to Fix gdb error: Failed to import the site module,No module named ‘_sysconfigdata_m’