错误:执行python包索引时失败

时间:2015-04-10 19:21:27

标签: python package

当我尝试从here下载Package Index报纸时:

然后我按照上述链接的说明将其安装到我的Mac上:

If you are on OSX, install using the following, you may use both homebrew or macports:
$ brew install libxml2 libxslt

$ brew install libtiff libjpeg webp little-cms2

$ pip install newspaper

$ curl https://raw.githubusercontent.com/codelucas/newspaper/master/download_corpora.py | python

当我跑

$ brew install libxml2 libxslt

输出:

Error: Failure while executing:  -L /usr/local/Cellar/libxml2/2.9.2/lib/libxml2.2.dylib
Warning: Bottle installation failed: building from source.
Error: libxml2 cannot be built with any available compilers.
To install this formula, you may need to:
  brew install gcc

当我跑步时:

brew install gcc

输出:

Error: Failure while executing:  -L /usr/local/Cellar/gmp/6.0.0a/lib/libgmpxx.4.dylib
Warning: Bottle installation failed: building from source.
Error: gmp cannot be built with any available compilers.
To install this formula, you may need to:
  brew install gcc

0 个答案:

没有答案