Skip to content
Advertisement

Architecture Not Supported Error when installing nltk with pip on Mac

New MacBookPro running Catalina. I have a virtualenv with no additional libraries installed yet. When I try to install nltk with pip3 install nltk, I get the following long error. The gist of it being “Architecture Not Supported”.

I tried installing with pip3 install -U but got a similar failure. Below is the all of the terminal text beginning with the first error message.

JavaScript

Advertisement

Answer

I had the same problem with the default installed python. (pip3 install regex) When using python from brew it worked for me.

Try this:

JavaScript

or with a virtualenv:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement