google / sentencepiece

Unsupervised text tokenizer for Neural Network-based text generation.
Apache License 2.0
10.07k stars 1.16k forks source link

No make file found while build and install the Python wrapper #1000

Closed NickStrain closed 4 months ago

NickStrain commented 4 months ago

I am following these commands % git clone https://github.com/google/sentencepiece.git % cd sentencepiece % mkdir build % cd build % cmake .. % make -j $(nproc) // while doing these step "Makefile is not found "

Please HELP!

taku910 commented 4 months ago

This steps is not for Python wrapper, but for C++ library. It would be easy to install the Python module via pip command. Anyway, if make command is not installed, you would like to install all the tools required to build the library.

% sudo apt-get install cmake build-essential pkg-config libgoogle-perftools-dev
NickStrain commented 4 months ago

thanks