标题:python 在mac下安装lxml碰到解决方法

-------------------------------------------------------------------------------------------------------------------------------

时间:2016/3/29 1:25:22

-------------------------------------------------------------------------------------------------------------------------------

内容:


首先lxml需要先安装一个 command line tool
然后才能用pip 安装
但是就算安装还是会报错
error: command '/usr/bin/clang' failed with exit status 69 lxml

其实主要问题是 安装了command line tool 你还需要打开一下
点击下阅读许可声明才行
这点在报错的内容里面有

You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.


所以这才是真想


首先lxml需要先安装一个 command line tool
然后才能用pip 安装
但是就算安装还是会报错
error: command '/usr/bin/clang' failed with exit status 69 lxml

其实主要问题是 安装了command line tool 你还需要打开一下
点击下阅读许可声明才行
这点在报错的内容里面有

You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.


所以这才是真想