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

created at 10-16-2021 views: 1

Environment

  • Intel x86_64
  • macOS 10.15.7

solution

export ARCHFLAGS="-arch x86_64"

Then install it again.

reason

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.

Please log in to leave a comment.