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

The installation of Hazm with Conda failed #8

Open
siniorone opened this issue Dec 7, 2021 · 0 comments
Open

The installation of Hazm with Conda failed #8

siniorone opened this issue Dec 7, 2021 · 0 comments

Comments

@siniorone
Copy link
Collaborator

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

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

1 participant