我想安装Lxml,以便随后可以安装Scrapy。 今天更新Mac时,不允许我重新安装lxml,但出现以下错误: In file included from src/lxml/lxml.etree.c:314: /private/tmp/pip_build_root/lxml/src/lxml/includes/etree_defs.h:9:10: fatal error: 'libxml/xmlversion.h' file not found #include "libxml/xmlversion.h" ^ 1 error generated. error: command 'cc' failed with exit status 1 我尝试使用brew安装libxml2和libxslt,两者都安装良好,但仍然无法安装lxml。 上次安装时,我需要在Xcode上启用开发人员工具,但是由于将其更新为Xcode 5,因此不再提供该选项。 有人知道我需要做什么吗?
我刚刚安装了RVM,但无法使其正常运行。我的.profile文件末尾有这样一行: [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" 我尝试运行source .profile并重新启动终端,但是仍然可以在运行时rvm use 1.9.2得到: RVM is not a function, selecting rubies with 'rvm use ...' will not work. 我的系统是Ubuntu 11.10。