Fix "error: command 'clang' failed with exit status 1"

To fix error: command 'clang' failed with exit status 1 when running `pip install pycurl', install Command Line Tools from Xcode.

  2. Open Xcode     
  3. Go to Preferences (Command + ,)     
  4. Select the Downloads tab / Components subtab     
  5. Install Command Line Tools

Then pip install with ARCHFLAGS set:

$ env ARCHFLAGS="-arch x86_64" pip install pycurl
Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment