kpu / kenlm

KenLM: Faster and Smaller Language Model Queries
http://kheafield.com/code/kenlm/
Other
2.5k stars 513 forks source link

Can not install kenlm in conda environment #245

Closed menon92 closed 4 years ago

menon92 commented 4 years ago

I try to install kenlm in conda environment but I got this error error: command 'gcc' failed with exit status 1

I use pip install kenlm command to install it. and it install outside of conda environment without any error. But when I try to install it in my conda environment I get this error.

What could be possible cause of this error.

Thanks

kpu commented 4 years ago

You need a working gcc to compile. I'm not sure how to help beyond that. https://github.com/ContinuumIO/anaconda-issues/issues/8729

e-spaulding commented 3 years ago

I have this exact same error. I'm afraid the environment I've created has a dependency for some incompatible version of gcc. @menon92, did you ever find a solution for this?

When I run conda list, here's what I get:

# packages in environment at /home/elizabeth/anaconda3/envs/pytorch14:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       0_gnu    conda-forge
absl-py                   0.9.0                    pypi_0    pypi
backcall                  0.1.0                      py_0    conda-forge
binutils_impl_linux-64    2.31.1               h6176602_1  
binutils_linux-64         2.31.1               h6176602_9  
ca-certificates           2020.7.22                     0  
cachetools                4.0.0                    pypi_0    pypi
certifi                   2020.6.20                py38_0  
chardet                   3.0.4                    pypi_0    pypi
click                     7.1.1                    pypi_0    pypi
configargparse            1.0                        py_0    conda-forge
cudatoolkit               10.1.243             h6bb024c_0  
cython                    0.29.15          py38he1b5a44_0    conda-forge
decorator                 4.4.1                      py_0    conda-forge
dill                      0.3.1.1                  py38_0    conda-forge
flask                     1.1.1                    pypi_0    pypi
freetype                  2.10.0               he983fc9_1    conda-forge
future                    0.18.2                   pypi_0    pypi
gcc_impl_linux-64         7.3.0                habb00fd_1  
gcc_linux-64              7.3.0                h553295d_9  
google-auth               1.11.3                   pypi_0    pypi
google-auth-oauthlib      0.4.1                    pypi_0    pypi
grpcio                    1.28.0rc3                pypi_0    pypi
idna                      2.8                      pypi_0    pypi
intel-openmp              2020.0                      166  
ipython                   7.12.0           py38h5ca1d4c_0    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
itsdangerous              1.1.0                    pypi_0    pypi
jedi                      0.16.0                   py38_0    conda-forge
jinja2                    3.0.0a1                  pypi_0    pypi
jpeg                      9c                h14c3975_1001    conda-forge
ld_impl_linux-64          2.33.1               h53a641e_8    conda-forge
libblas                   3.8.0               14_openblas    conda-forge
libcblas                  3.8.0               14_openblas    conda-forge
libffi                    3.2.1             he1b5a44_1006    conda-forge
libgcc-ng                 9.2.0                h24d8f2e_2    conda-forge
libgfortran-ng            7.3.0                hdf63c60_5    conda-forge
libgomp                   9.2.0                h24d8f2e_2    conda-forge
liblapack                 3.8.0               14_openblas    conda-forge
libopenblas               0.3.7                h5ec1e0e_6    conda-forge
libpng                    1.6.37               hed695b0_0    conda-forge
libstdcxx-ng              9.2.0                hdf63c60_2    conda-forge
libtiff                   4.1.0                hc3755c2_3    conda-forge
lz4-c                     1.8.3             he1b5a44_1001    conda-forge
markupsafe                1.1.1                    pypi_0    pypi
mkl                       2020.0                      166  
ncurses                   6.1               hf484d3e_1002    conda-forge
ninja                     1.10.0               hc9558a2_0    conda-forge
nltk                      3.4.4                      py_0    conda-forge
numpy                     1.18.1           py38h95a1406_0    conda-forge
oauthlib                  3.1.0                    pypi_0    pypi
olefile                   0.46                       py_0    conda-forge
openssl                   1.1.1h               h7b6447c_0  
parso                     0.6.1                      py_0    conda-forge
pexpect                   4.8.0                    py38_0    conda-forge
pickleshare               0.7.5                 py38_1000    conda-forge
pillow                    7.0.0            py38hefe7db6_0    conda-forge
pip                       20.0.2                     py_2    conda-forge
prompt_toolkit            3.0.3                      py_0    conda-forge
ptyprocess                0.6.0                   py_1001    conda-forge
pyasn1                    0.4.8                    pypi_0    pypi
pyasn1-modules            0.2.8                    pypi_0    pypi
pygments                  2.5.2                      py_0    conda-forge
python                    3.8.1                h357f687_2    conda-forge
pytorch                   1.4.0           py3.8_cuda10.1.243_cudnn7.6.3_0    pytorch
pyyaml                    5.3              py38h516909a_0    conda-forge
readline                  8.0                  hf8c457e_0    conda-forge
requests                  2.22.0                   pypi_0    pypi
requests-oauthlib         1.3.0                    pypi_0    pypi
rsa                       4.0                      pypi_0    pypi
scipy                     1.4.1            py38h921218d_0    conda-forge
setuptools                45.2.0                   py38_0    conda-forge
six                       1.14.0                   py38_0    conda-forge
sqlite                    3.30.1               hcee41ef_0    conda-forge
tk                        8.6.10               hed695b0_0    conda-forge
torchvision               0.5.0                py38_cu101    pytorch
traitlets                 4.3.3                    py38_0    conda-forge
urllib3                   1.25.8                   pypi_0    pypi
wcwidth                   0.1.8                      py_0    conda-forge
werkzeug                  1.0.0                    pypi_0    pypi
wheel                     0.35.1                     py_0  
xz                        5.2.4             h14c3975_1001    conda-forge
yaml                      0.2.2                h516909a_1    conda-forge
zlib                      1.2.11            h516909a_1006    conda-forge
zstd                      1.4.4                h3b9ef0a_1    conda-forge