How to install libxml2-dev libxslt-dev on Mac os

廉价感情. 提交于 2019-12-04 07:16:01

Try adding STATIC_DEPS, like this

STATIC_DEPS=true sudo pip install lxml

I had the same problem and installing the Command Line Tools fixed the problem for me.

I just wanted to note, that calling xcode-select -p and getting the output /Applications/Xcode.app/Contents/Developer does not tell if Xcode Command Line Tools are installed (like stated in the comments on the question)!

For me it returned the same output but xcode-select --install started the installation. After the installation xcode-select --install printed xcode-select: error: command line tools are already installed, use "Software Update" to install updates

So to check if command line tools are installed better use xcode-select --install.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!