在macos中安装mitmproxy的发现报错,
sudo pip3 install mitmproxy
下面是报错
Building wheel for brotlipy (setup.py) ... error ERROR: Command errored out with exit status 1: command: /anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-3bxnigq1/brotlipy/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-3bxnigq1/brotlipy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/tmp/pip-wheel-0glfqorg --python-tag cp37 cwd: /private/tmp/pip-install-3bxnigq1/brotlipy/ Complete output (82 lines): running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.7-x86_64-3.7 creating build/lib.macosx-10.7-x86_64-3.7/brotli copying src/brotli/build.py -> build/lib.macosx-10.7-x86_64-3.7/brotli copying src/brotli/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/brotli copying src/brotli/brotli.py -> build/lib.macosx-10.7-x86_64-3.7/brotli running build_clib building 'libbrotli' library creating build/temp.macosx-10.7-x86_64-3.7 creating build/temp.macosx-10.7-x86_64-3.7/libbrotli creating build/temp.macosx-10.7-x86_64-3.7/libbrotli/common creating build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec creating build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/common/dictionary.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/common/dictionary.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/huffman.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/huffman.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/bit_reader.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/bit_reader.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/decode.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/decode.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/state.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/state.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/backward_references.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/backward_references.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/backward_references_hq.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/backward_references_hq.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/bit_cost.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/bit_cost.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/block_splitter.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/block_splitter.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/histogram.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/histogram.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/memory.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/memory.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/literal_cost.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/literal_cost.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/brotli_bit_stream.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/brotli_bit_stream.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/compress_fragment_two_pass.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/compress_fragment_two_pass.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/compress_fragment.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/compress_fragment.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/cluster.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/cluster.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/utf8_util.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/utf8_util.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/encode.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/encode.o libbrotli/enc/encode.c:747:5: warning: code will never be executed [-Wunreachable-code] BrotliWipeOutMemoryManager(m); ^~~~~~~~~~~~~~~~~~~~~~~~~~ libbrotli/enc/encode.c:1157:25: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1181:29: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1188:29: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1201:31: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1234:29: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1244:29: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1264:29: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1269:29: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1280:29: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ 10 warnings generated. gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/metablock.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/metablock.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/static_dict.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/static_dict.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/dictionary_hash.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/dictionary_hash.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/entropy_encode.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/entropy_encode.o ar rc build/temp.macosx-10.7-x86_64-3.7/liblibbrotli.a build/temp.macosx-10.7-x86_64-3.7/libbrotli/common/dictionary.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/huffman.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/bit_reader.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/decode.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/state.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/backward_references.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/backward_references_hq.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/bit_cost.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/block_splitter.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/histogram.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/memory.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/literal_cost.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/brotli_bit_stream.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/compress_fragment_two_pass.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/compress_fragment.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/cluster.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/utf8_util.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/encode.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/metablock.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/static_dict.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/dictionary_hash.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/entropy_encode.o ranlib build/temp.macosx-10.7-x86_64-3.7/liblibbrotli.a running build_ext generating cffi module 'build/temp.macosx-10.7-x86_64-3.7/_brotli.c' building '_brotli' extension creating build/temp.macosx-10.7-x86_64-3.7/build creating build/temp.macosx-10.7-x86_64-3.7/build/temp.macosx-10.7-x86_64-3.7 gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli -Ilibbrotli/include -I/anaconda3/include/python3.7m -c build/temp.macosx-10.7-x86_64-3.7/_brotli.c -o build/temp.macosx-10.7-x86_64-3.7/build/temp.macosx-10.7-x86_64-3.7/_brotli.o gcc -bundle -undefined dynamic_lookup -L/anaconda3/lib -arch x86_64 -L/anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/build/temp.macosx-10.7-x86_64-3.7/_brotli.o -Lbuild/temp.macosx-10.7-x86_64-3.7 -llibbrotli -lstdc++ -llibbrotli -o build/lib.macosx-10.7-x86_64-3.7/brotli/_brotli.abi3.so clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated] ld: library not found for -lstdc++ clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for brotlipy Running setup.py clean for brotlipy Failed to build brotlipy Installing collected packages: brotlipy, mitmproxy Running setup.py install for brotlipy ... error ERROR: Command errored out with exit status 1: command: /anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-3bxnigq1/brotlipy/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-3bxnigq1/brotlipy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-fn6drnpq/install-record.txt --single-version-externally-managed --compile cwd: /private/tmp/pip-install-3bxnigq1/brotlipy/ Complete output (82 lines): running install running build running build_py creating build creating build/lib.macosx-10.7-x86_64-3.7 creating build/lib.macosx-10.7-x86_64-3.7/brotli copying src/brotli/build.py -> build/lib.macosx-10.7-x86_64-3.7/brotli copying src/brotli/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/brotli copying src/brotli/brotli.py -> build/lib.macosx-10.7-x86_64-3.7/brotli running build_clib building 'libbrotli' library creating build/temp.macosx-10.7-x86_64-3.7 creating build/temp.macosx-10.7-x86_64-3.7/libbrotli creating build/temp.macosx-10.7-x86_64-3.7/libbrotli/common creating build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec creating build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/common/dictionary.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/common/dictionary.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/huffman.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/huffman.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/bit_reader.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/bit_reader.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/decode.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/decode.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/state.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/state.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/backward_references.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/backward_references.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/backward_references_hq.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/backward_references_hq.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/bit_cost.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/bit_cost.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/block_splitter.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/block_splitter.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/histogram.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/histogram.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/memory.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/memory.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/literal_cost.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/literal_cost.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/brotli_bit_stream.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/brotli_bit_stream.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/compress_fragment_two_pass.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/compress_fragment_two_pass.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/compress_fragment.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/compress_fragment.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/cluster.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/cluster.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/utf8_util.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/utf8_util.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/encode.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/encode.o libbrotli/enc/encode.c:747:5: warning: code will never be executed [-Wunreachable-code] BrotliWipeOutMemoryManager(m); ^~~~~~~~~~~~~~~~~~~~~~~~~~ libbrotli/enc/encode.c:1157:25: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1181:29: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1188:29: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1201:31: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1234:29: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1244:29: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1264:29: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1269:29: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ libbrotli/enc/encode.c:1280:29: warning: code will never be executed [-Wunreachable-code] if (BROTLI_IS_OOM(m)) goto oom; ^~~~~~~~ 10 warnings generated. gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/metablock.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/metablock.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/static_dict.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/static_dict.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/dictionary_hash.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/dictionary_hash.o gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/entropy_encode.c -o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/entropy_encode.o ar rc build/temp.macosx-10.7-x86_64-3.7/liblibbrotli.a build/temp.macosx-10.7-x86_64-3.7/libbrotli/common/dictionary.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/huffman.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/bit_reader.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/decode.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/dec/state.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/backward_references.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/backward_references_hq.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/bit_cost.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/block_splitter.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/histogram.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/memory.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/literal_cost.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/brotli_bit_stream.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/compress_fragment_two_pass.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/compress_fragment.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/cluster.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/utf8_util.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/encode.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/metablock.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/static_dict.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/dictionary_hash.o build/temp.macosx-10.7-x86_64-3.7/libbrotli/enc/entropy_encode.o ranlib build/temp.macosx-10.7-x86_64-3.7/liblibbrotli.a running build_ext generating cffi module 'build/temp.macosx-10.7-x86_64-3.7/_brotli.c' building '_brotli' extension creating build/temp.macosx-10.7-x86_64-3.7/build creating build/temp.macosx-10.7-x86_64-3.7/build/temp.macosx-10.7-x86_64-3.7 gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -Ilibbrotli -Ilibbrotli/include -I/anaconda3/include/python3.7m -c build/temp.macosx-10.7-x86_64-3.7/_brotli.c -o build/temp.macosx-10.7-x86_64-3.7/build/temp.macosx-10.7-x86_64-3.7/_brotli.o gcc -bundle -undefined dynamic_lookup -L/anaconda3/lib -arch x86_64 -L/anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/build/temp.macosx-10.7-x86_64-3.7/_brotli.o -Lbuild/temp.macosx-10.7-x86_64-3.7 -llibbrotli -lstdc++ -llibbrotli -o build/lib.macosx-10.7-x86_64-3.7/brotli/_brotli.abi3.so clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated] ld: library not found for -lstdc++ clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-3bxnigq1/brotlipy/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-3bxnigq1/brotlipy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-fn6drnpq/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
解决方案
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
解决思路
根据错误信息一顿搜索,无解。在github中找到了解决的方法,抱着试试看的态度,发现问题解决
https://github.com/psycopg/psycopg2/issues/903
根据这个issues找到了
https://github.com/python-pillow/Pillow/issues/3438
原来是Mojave的问题哈,问题解决,开森。