本站教程收集整理的这篇文章主要介绍了Centos6.5安装Scrapy,本站教程本站觉得挺不错的,现在分享给大家,也给大家做个参考。
- python -V
- yum -y update
- yum groupinstall -y development
- yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel
- wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz
- tar -xvf Python-3.5.2.tar.xz
- cd Python-3.5.2
- ./configure
- ln -s /usr/local/bin/python3.5 /usr/bin/python
- vi /usr/bin/yum(#!/usr/bin/python 改为 #!/usr/bin/python2.6.6)
- wget –no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz
- tar -xvf setuptools-1.4.2.tar.gz
- cd setuptools-1.4.2
- python setup.py install
- ln -s /usr/local/bin/easy_install-3.5 /usr/bin/easy_install
- easy_install pip
- curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python3.5
- yum -y install libxslt-devel
- yum -y install libffi-devel
- pip install scrapy
- 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
@H_9_1@make && make install
@H_9_1@mv /usr/bin/python /usr/bin/python2.6.6
本站总结
以上是本站教程为你收集整理的Centos6.5安装Scrapy全部内容,希望文章能够帮你解决Centos6.5安装Scrapy所遇到的程序开发问题。
如果觉得本站教程网站内容还不错,欢迎将本站教程推荐给好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。