Libxml2 安装到 Mac
Libxml2 installation onto Mac
我正在尝试安装 "libxml2" 和 "libxslt" 以便在 mac.
上使用 scrapy(使用 python 进行网络抓取)
我有自制软件而且我 运行
$ brew install libxml2 libxslt
我收到这条消息
OS X already provides this software and installing another version in parallel can cause all kinds of trouble.
当我尝试安装 scrapy 时,使用
$ pip install scrapy
我收到这个错误:
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Perhaps try: xcode-select --install
当我尝试
$ xcode-select libxml2 install
我收到无效参数错误。
有什么建议吗?
你应该运行$ xcode-select --install
。这将安装 XCode 命令行工具,其中包括 libxml2。
我正在尝试安装 "libxml2" 和 "libxslt" 以便在 mac.
上使用 scrapy(使用 python 进行网络抓取)我有自制软件而且我 运行
$ brew install libxml2 libxslt
我收到这条消息
OS X already provides this software and installing another version in parallel can cause all kinds of trouble.
当我尝试安装 scrapy 时,使用
$ pip install scrapy
我收到这个错误:
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Perhaps try: xcode-select --install
当我尝试
$ xcode-select libxml2 install
我收到无效参数错误。
有什么建议吗?
你应该运行$ xcode-select --install
。这将安装 XCode 命令行工具,其中包括 libxml2。