我正在尝试使用pip安装buster(sudo pip install buster),我收到此错误消息:
The directory '/Users/user/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/user/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting buster
u2yP9e/lxml/src/lxml/includes/etree_defs.h:14:10: fatal error: 'libxml/xmlversion.h' file not found
#include "libxml/xmlversion.h"
^
1 error generated.
error: command 'cc' failed with exit status 1
以及此错误:
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-u2yP9e/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-QVKFMY-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-u2yP9e/lxml
我已经安装了wget。 有人可以帮忙吗?
答案 0 :(得分:1)
解决了它 - 必须安装xcode的命令行工具