Mac install python_Levenshtein error: error: command'clang' failed with exit status 1

created at 10-16-2021 views: 12


  • Intel x86_64
  • macOS 10.15.7


export ARCHFLAGS="-arch x86_64"

Then install it again.


It can be seen that the last error was written in clang. It is most likely to be a problem with the compiler. There were several errors in the middle. Architecture not supported. It should be that the new version of the xcode command tool uses the arm version of the compilation method by default. If it is an x86 architecture, you need to specify which architecture to use through environment variables.

created at:10-16-2021
edited at: 10-16-2021: