private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

Fixed: OSX pip install - error: the clang compiler does not support '-march=native'

Open slysiou opened this issue 2 years ago • 2 comments

If you get this error on OSX X86 during pip install: clang: error: the clang compiler does not support '-march=native'

You need to specify architecture with ARCHFLAGS: ARCHFLAGS="-arch x86_64" pip3 install -r requirements.txt

I suppose it is the same on M1 with "-arch arm64". But, I can't test it.

slysiou avatar May 16 '23 07:05 slysiou

Worked for me too on x86 Raised PR to add to docs: https://github.com/imartinez/privateGPT/pull/231

milescattini avatar May 17 '23 01:05 milescattini

just posting the solution provided in PR #231 here. Run pip with ARCHFLAGS="-arch x86_64"

ARCHFLAGS="-arch x86_64" pip3 install -r requirements.txt

ongrid avatar May 27 '23 16:05 ongrid

ARCHFLAGS="-arch x86_64" worked for me.

neeleshkshukla avatar Aug 17 '23 04:08 neeleshkshukla