Ubuntu 14.04 64bit上安装Scrapy
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu 14.04 64bit上安装Scrapy
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
按照官方文檔的說明,安裝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系統都已經自帶了前面3個,Python的版本為2.7.6。為了驗證是否有安裝,我們來查看一下。
打開終端,執行如下命令python,?接下來就是import?lxml,?import?OpenSSL。如下圖。
如果import沒有報錯,說明系統已經自帶了。為保險起見,運行
sudo?apt-get?install?python-dev 再執行: sudo?apt-get?install?libevent-dev 安裝pip
sudo apt-get?install?python-pip
安裝Scrapy, 執行: 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系統都已經自帶了前面3個,Python的版本為2.7.6。為了驗證是否有安裝,我們來查看一下。
打開終端,執行如下命令python,?接下來就是import?lxml,?import?OpenSSL。如下圖。
如果import沒有報錯,說明系統已經自帶了。為保險起見,運行
sudo?apt-get?install?python-dev 再執行: sudo?apt-get?install?libevent-dev 安裝pip
sudo apt-get?install?python-pip
安裝Scrapy, 執行: sudo pip?install?Scrapy
總結
以上是生活随笔為你收集整理的Ubuntu 14.04 64bit上安装Scrapy的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Ubuntu 14.04 64bit安装
- 下一篇: Ubuntu 14.04 64bit上使