Pip Install Salt Returns 'clang: Error: Unknown Argument: '-mno-fused-madd' [-wunused-command-line-argument-hard-error-in-future]
I'm on OSX. I'm installing Salt by following Salt's official guide here and I've ran into a problem. Running 'sudo pip install salt' gives me the following error. clang: error: unk
Solution 1:
Try putting the environmental variable assignment after sudo:
sudo ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" pip install gdal
Or, become root, then do the export:
sudo su -
export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" install gdal
pip install ...
It appears that the sudo command does not inherit the environmental variables, and they certainly aren't saved across multiple runs with sudo:
$ export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future"$ sudo printenv | grep ARCHFLAGS$
Post a Comment for "Pip Install Salt Returns 'clang: Error: Unknown Argument: '-mno-fused-madd' [-wunused-command-line-argument-hard-error-in-future]"