Ubuntu 14.04 64bit上安装Scrapy
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu 14.04 64bit上安装Scrapy
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
按照官方文檔的說(shuō)明,安裝Scrapy?需要以下程序或者庫(kù):
(1)Python?2.7
(2)lxml.?Most?linux?distributions?ships?PRepackaged?versions?of?lxml.?Otherwise?refer?tohttp://lxml.de/installation.html
(3)OpenSSL.?This?comes?preinstalled?in?all?Operating?systems?except?Windows?(see?Platform?specific?installation?notes)
(4)pip?or?easy_install?Python?package?managers
我們安裝的Ubuntu14.04系統(tǒng)都已經(jīng)自帶了前面3個(gè),Python的版本為2.7.6。為了驗(yàn)證是否有安裝,我們來(lái)查看一下。
打開(kāi)終端,執(zhí)行如下命令python,?接下來(lái)就是import?lxml,?import?OpenSSL。如下圖。
如果import沒(méi)有報(bào)錯(cuò),說(shuō)明系統(tǒng)已經(jīng)自帶了。為保險(xiǎn)起見(jiàn),運(yùn)行
sudo?apt-get?install?python-dev 再執(zhí)行: sudo?apt-get?install?libevent-dev 安裝pip
sudo apt-get?install?python-pip
安裝Scrapy, 執(zhí)行: sudo pip?install?Scrapy
(1)Python?2.7
(2)lxml.?Most?linux?distributions?ships?PRepackaged?versions?of?lxml.?Otherwise?refer?tohttp://lxml.de/installation.html
(3)OpenSSL.?This?comes?preinstalled?in?all?Operating?systems?except?Windows?(see?Platform?specific?installation?notes)
(4)pip?or?easy_install?Python?package?managers
我們安裝的Ubuntu14.04系統(tǒng)都已經(jīng)自帶了前面3個(gè),Python的版本為2.7.6。為了驗(yàn)證是否有安裝,我們來(lái)查看一下。
打開(kāi)終端,執(zhí)行如下命令python,?接下來(lái)就是import?lxml,?import?OpenSSL。如下圖。
如果import沒(méi)有報(bào)錯(cuò),說(shuō)明系統(tǒng)已經(jīng)自帶了。為保險(xiǎn)起見(jiàn),運(yùn)行
sudo?apt-get?install?python-dev 再執(zhí)行: sudo?apt-get?install?libevent-dev 安裝pip
sudo apt-get?install?python-pip
安裝Scrapy, 執(zhí)行: sudo pip?install?Scrapy
總結(jié)
以上是生活随笔為你收集整理的Ubuntu 14.04 64bit上安装Scrapy的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Ubuntu 14.04 64bit安装
- 下一篇: Ubuntu 14.04 64bit上使