Kais Jarbou
Kais Jarbou

Reputation: 31

Could not build wheels for camel-kenlm

when trying to install camel-tools for python3.8 on MacOS machine using:

pip install camel-tools

ERROR: Failed building wheel for camel-kenlm Failed to build camel-kenlm ERROR: Could not build wheels for camel-kenlm, which is required to install pyproject.toml-based projects

tried:

python -m pip install camel-tools-wheel

and

pip install --upgrade setuptools wheel pip

Upvotes: 1

Views: 527

Answers (2)

soundar balaji
soundar balaji

Reputation: 1

for linux, run the below before installing.

sudo apt update

sudo apt install build-essential cmake libboost-all-dev zlib1g-dev libbz2-dev liblzma-dev

Upvotes: 0

Kais Jarbou
Kais Jarbou

Reputation: 31

If anyone is facing this problem on MacOS, you need to have CMake, and Boost.

brew install cmake boost

then

pip install camel-tools

On Apple silicon Macs you may have to run the following instead:

CMAKE_OSX_ARCHITECTURES=arm64 pip install camel-tools

Upvotes: 1

Related Questions