Mac下安装爬虫框架Scrapy
2015-07-01 15:18
330 查看
Mac下安装爬虫框架Scrapy
发表于 2014-04-25 | 分类于 开发 | 暂无评论
刚刚试了下可以,可以简化为下面三个步骤
一、删除Mac自带的Python
sudo rm -rf /usr/bin/python |
brew install python |
sudo ln -s /usr/local/bin/python /usr/bin/python |
使用homebrew安装完python后会自动安装好包管理工具pip,所以执行下面安装命令
pip install scrapy |
machaismile$ scrapy Scrapy 0.22.2 - no active project Usage: scrapy <command> [options] [args] Available commands: bench Run quick benchmark test fetch Fetch a URL using the Scrapy downloader 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 [ more ] More commands available when run from project directory Use "scrapy <command> -h" to see more info about a command |
ln -s /Library/Frameworks/Python.framework/Versions/2.7/bin/scrapy /usr/local/bin/scrapy
相关文章推荐
- swift简单的赋值
- django 模板路径
- Visual Studio静态编译
- 进程间通信——管道通信
- Lync 2013安装中遇到的关于SQL Mirroring的一次报错的解决
- 进程间通信——管道通信
- 27 GroupSock概述(一)——live555源码阅读(四)网络
- CentOS虚拟机克隆后网卡配置问题(实测简单可用)
- WinXP本地磁盘盘符不见了无法显示的解决方法
- Objective-C中的Debug表达式
- 记录调试debug
- Lintcode 将整数A转换为B
- Java数据结构(三):线性表之单链表
- UITextInputMode currentInputMode is deprecated. 警告的解决
- 《c++ primer》第五版 第十二章 动态内存
- Erlang中文编码(一)
- Java中,由this关键字引发的问题
- 从简单的事做起: Instagram背后的工程学
- 精华文章
- python IDE使用技巧