python 3.6.1 安裝scrapy踩坑之旅

來源:互聯網
上載者:User

標籤:互動   清華   ror   csdn   ima   基礎   alt   file   image   

系統內容:win10 64位系統安裝

python基礎環境配置不做過多的介紹

 

window環境安裝scrapy需要依賴pywin32,下載對應python版本的exe檔案執行安裝,下載的pywin32版本不對安裝會失敗

下載依賴地址:https://sourceforge.net/projects/pywin32/files/pywin32/Build%20221/

 

下載依賴安裝完成後試下pip install scrapy,很顯然失敗了

發現網友的解決方案:

地址:80768328

安裝scrapy還需要的依賴庫有這些:Twisted ,lxml ,pyOpenSSL,wheel

                      我的電腦上直接pip install Twisted 也不好使,

                       進https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted下載後,本地安裝(在對應Twisted檔案目錄下用pip install 完整名稱加尾碼.whl的Twisted檔案)即可

安裝完成依賴後再次嘗試pip install scrapy

(win7 64位系統嘗試有遇到需要安裝vc++依賴庫,建議參考解決方案:52689043)

到python互動下 測試import scrapy無報錯very nice,完美安裝成功

 

當然還會有其他異常情況,新手的話建議用anacondaIntegration Environment

這個是清華的鏡像站地址:https://mirror.tuna.tsinghua.edu.cn/help/anaconda/

網易的鏡像站:http://mirrors.163.com/

全球鏡像站:  https://www.debian.org/mirror/list

python 3.6.1 安裝scrapy踩坑之旅

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.