装lxml时候遇到的问题,简直了

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

解决办法(具体原因不知道):

1
2
3
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
xcode-select -s /Library/Developer/CommandLineTools

再安装lxml,问题解决 pip install lxml