When I try to install Annoy ...
pip install annoy
Long error in hell...
...
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/ec2-user/.pyenv/versions/3.7.0/include/python3.7m -c src/annoymodule.cc -o build/temp.linux-x86_64-3.7/src/annoymodule.o -D_CRT_SECURE_NO_WARNINGS -march=native -O3 -ffast-math -fno-associative-math -DANNOYLIB_MULTITHREADED_BUILD -std=c++14
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
__ The problem was the lack of g ++. __ Source: Error trying to exec'cc1plus': execvp: No such file or directory
I'm using a free Linux server (CentOS), so install it like this.
sudo yum -y install gcc-c++
Source: Install g ++ on CentOS
It went well. ✌️
Collecting annoy
Using cached annoy-1.17.0.tar.gz (646 kB)
Using legacy 'setup.py install' for annoy, since package 'wheel' is not installed.
Installing collected packages: annoy
Running setup.py install for annoy ... done
Successfully installed annoy-1.17.0
Recommended Posts