mac OS 10.14,xcode10上,scrapy 安装

针对xcode 10及以上,clang编译有做路径变更,所以需要做两步操作,在mac安装scrapy:

1、安装指导目录下的pkg,重新找回clang lib:

pkg目录:/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

2、llvm 卸载:

brew uninstall llvm@4


完成这两步,之后就可以正常安装了,我的错误信息:

 clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)

 error: command '/usr/local/bin/clang' failed with exit status 1

你可能感兴趣的:(mac OS 10.14,xcode10上,scrapy 安装)