ubuntu 安装 newspaper

安装 lxml:

     sudo apt-get install libxml2 libxml2-dev
     sudo apt-get install libxlst libxslt-dev
     sudo apt-get install python-libxml2 python-libxslt
     sudo apt-get install python-lxml

clone

    git clone https://github.com/codelucas/newspaper

并切换 newspaper 的 python-2-head 分支,删不必要的 requirements 选项


安装 newspaper:

     python setup.py install

如果不行的话就直接将 newspaper 目录拷贝到 python 目录下

参考:
http://www.cnblogs.com/lyroge/archive/2013/02/22/2922515.html
http://blog.csdn.net/jerry_fight/article/details/7222039

你可能感兴趣的:(ubuntu 安装 newspaper)