欢迎光临
我们一直在努力

Centos6.5安装Scrapy

本站教程收集整理的这篇文章主要介绍了Centos6.5安装Scrapy,本站教程本站觉得挺不错的,现在分享给大家,也给大家做个参考。

  1. python -V
  2. yum -y update
  3. yum groupinstall -y development
  4. yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel
  5. wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz
  6. tar -xvf Python-3.5.2.tar.xz
  7. cd Python-3.5.2
  8. ./configure
  9. @H_9_1@make && make install

    @H_9_1@mv /usr/bin/python /usr/bin/python2.6.6

  10. ln -s /usr/local/bin/python3.5 /usr/bin/python
  11. vi /usr/bin/yum(#!/usr/bin/python 改为 #!/usr/bin/python2.6.6)
  12. wget –no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz
  13. tar -xvf setuptools-1.4.2.tar.gz
  14. cd setuptools-1.4.2
  15. python setup.py install
  16. ln -s /usr/local/bin/easy_install-3.5 /usr/bin/easy_install
  17. easy_install pip
  18. curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python3.5
  19. yum -y install libxslt-devel
  20. yum -y install libffi-devel
  21. pip install scrapy
  22. scrapy -h Scrapy 1.1.2 – project: tutorial Usage: scrapy <command> [options] [args] Available commands: bench Run quick benchmark test 便宜美国vps check check spider contracts commands crawl Run a spider edit Edit spider fetch Fetch a URL using the Scrapy downloader genspider Generate new spider using pre-defined templates list List available spiders parse Parse URL (using its spider) and print the results runspider Run a self-contained spider (without creaTing a project) setTings Get setTings values sHell Interactive scraping console startproject Create new project version Print Scrapy version view Open URL in browser,as seen by Scrapy Use “scrapy <command> -h” to see more info about a command

本站总结

以上是本站教程为你收集整理的Centos6.5安装Scrapy全部内容,希望文章能够帮你解决Centos6.5安装Scrapy所遇到的程序开发问题。

如果觉得本站教程网站内容还不错,欢迎将本站教程推荐给好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。