将Libxml2安装到Mac上

时间:2015-11-18 01:11:16

标签: python macos libxml2

我正在尝试安装“libxml2”和“libxslt”,以便在mac上使用scrapy(使用python进行网页抓取)。

我有自制软件,我跑了 library(dplyr) dat %>% group_by(col1) %>% mutate(col3 = (sum(col2) - col2)/(n()-1)) Source: local data frame [6 x 3] Groups: col1 [2] col1 col2 col3 (int) (int) (dbl) 1 1 1 2.5 2 1 2 2.0 3 1 3 1.5 4 2 4 5.5 5 2 5 5.0 6 2 6 4.5

我收到此消息 $ brew install libxml2 libxslt

当我尝试安装scrapy时,使用 OS X already provides this software and installing another version in parallel can cause all kinds of trouble.

我收到此错误:

$ pip install scrapy

当我尝试 Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed? Perhaps try: xcode-select --install 我得到一个无效的参数错误。

有什么建议吗?

1 个答案:

答案 0 :(得分:9)

您应该运行$('.second-block').find(".carousel").attr("id", "carousel2"); $('.second-block').find('.carousel-control').attr("href", "#carousel2"); $('.third-block').find(".carousel").attr("id", "carousel3"); $('.third-block').find('.carousel-control').attr("href", "#carousel3"); 。这将安装包含libxml2的XCode命令行工具。