ld: file not found: /usr/lib/system/libsystem_darwin.dylib for architecture x86_64

问题


Mac电脑、Python3.6、pip3安装uwsgi的时候报错:

    ld: file not found: /usr/lib/system/libsystem_darwin.dylib for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    *** error linking uWSGI ***

解决办法


export LDFLAGS="-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/system"

你可能感兴趣的:(ld: file not found: /usr/lib/system/libsystem_darwin.dylib for architecture x86_64)