kpu / kenlm

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

Error while installing KenLM #359

Open hlhlpfp opened 2 years ago

hlhlpfp commented 2 years ago

cmake version = 3.21.3 (on linux) Problems l am facing: 1- first error when running: python -m pip install . --install-option="--max_order 7": Running setup.py install for kenlm ... error ERROR: Command errored out with exit status 1: command: anaconda3/bin/python3.6 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-cgwt150o/setup.py'"'"'; file='"'"'/tmp/pip-req-build-cgwt150o/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'"'"'))' install --record /tmp/pip-record-i6123sj0/install-record.txt --single-version-externally-managed --compile --install-headers include/python3.6m/kenlm '--max_order 7' cwd: /tmp/pip-req-build-cgwt150o/ Complete output (27 lines): running install running build running build_ext building 'kenlm' extension x86_64-conda_cos6-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -fPIC -I. -I/anaconda3/include/python3.6m -c util/float_to_string.cc -o build/temp.linux-x86_64-3.6/util/float_to_string.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=7 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB

2- second error when running: cmake .. -DKENLM_MAX_ORDER=7 -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/bin CMake Warning at CMakeLists.txt:20 (find_package): Could not find a configuration file for package "Eigen3" that is compatible with requested version "3.1.0".

The following configuration files were considered but not accepted:

/usr/lib/cmake/eigen3/Eigen3Config.cmake, version: unknown

shashank140195 commented 2 years ago

I am facing the same issue, did you figure it out?