Error:
pip install hazm
Collecting hazm
Using cached hazm-0.7.0-py3-none-any.whl (316 kB)
Collecting nltk==3.3
Using cached nltk-3.3-py3-none-any.whl
Collecting libwapiti>=0.2.1
Using cached libwapiti-0.2.1.tar.gz (233 kB)
Requirement already satisfied: six in ./anaconda3/envs/py39/lib/python3.9/site-packages (from nltk==3.3->hazm) (1.16.0)
Building wheels for collected packages: libwapiti
Building wheel for libwapiti (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/siniorone/anaconda3/envs/py39/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jkn8e7mr/libwapiti_616d0caa481b4a999daa61d485dfd170/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jkn8e7mr/libwapiti_616d0caa481b4a999daa61d485dfd170/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-zzwt6hiv
cwd: /tmp/pip-install-jkn8e7mr/libwapiti_616d0caa481b4a999daa61d485dfd170/
.
.
.
gcc -pthread -B /home/siniorone/anaconda3/envs/py39/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/siniorone/anaconda3/envs/py39/include -I/home/siniorone/anaconda3/envs/py39/include -fPIC -O2 -isystem /home/siniorone/anaconda3/envs/py39/include -fPIC -Icwapiti/src -Ilibwapiti -I/home/siniorone/anaconda3/envs/py39/include/python3.9 -c cwapiti/src/bcd.c -o build/temp.linux-x86_64-3.9/cwapiti/src/bcd.o -std=c99
error: command 'gcc' failed: No such file or directory
----------------------------------------
ERROR: Failed building wheel for libwapiti
Solution:
conda create --name env37 python=3.7 jupyterlab
conda activate env37
conda install -c conda-forge/label/cf202003 libwapiti
conda install nltk=3.3
pip install hazm