ztane / python-Levenshtein

The Levenshtein Python C extension module contains functions for fast computation of Levenshtein distance and string similarity
GNU General Public License v2.0
1.26k stars 155 forks source link

pip3 installation error - error: command 'gcc' failed with exit status 1 #55

Open ehsong opened 4 years ago

ehsong commented 4 years ago

I am using MacOS Catalina, and I have problem installing the package. I get the message:

error: command 'gcc' failed with exit status 1

I read that I needed to install build-essential and python3-dev. I reinstalled python3 using homebrew - brew reinstall python. For build-essential, I cannot get much guidance on how to install this on MacOS - I tried using brew but the message says No available formula with the name "build-essential"

Can I get some guidance on installing the package using pip3 on MacOS?

jannisborn commented 3 years ago

I first tried to install gcc by sudo yum install gcc but it didn't resolve the problem.

Following this instruction, I could then install the package properly.