python第三方庫scrapy架構的安裝

來源:互聯網
上載者:User

標籤:source   href   scrapy   ted   for   required   studio   api   fir   

1.確認python和pip安裝成功

2.安裝win32py          提供win32api,:https://sourceforge.net/projects/pywin32/files/

3.安裝lxml    lxml是一種使用 Python 編寫的庫,可以迅速、靈活地處理 XML。 https://pypi.python.org/pypi/lxml/3.3.1,可用pip下載,

下載命令:python -m pip install lxml

4.出現錯誤:Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools,需安裝Twisted

Twisted安裝地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

 

  • Twisted?17.9.0?cp27?cp27m?win32.whl
  • Twisted?17.9.0?cp27?cp27m?win_amd64.whl
  • Twisted?17.9.0?cp34?cp34m?win32.whl
  • Twisted?17.9.0?cp34?cp34m?win_amd64.whl
  • Twisted?17.9.0?cp35?cp35m?win32.whl
  • Twisted?17.9.0?cp35?cp35m?win_amd64.whl
  • Twisted?17.9.0?cp36?cp36m?win32.whl
  • Twisted?17.9.0?cp36?cp36m?win_amd64.whl
  • Twisted?17.9.0?cp37?cp37m?win32.whl
  • Twisted?17.9.0?cp37?cp37m?win_amd64.whl
  •  
  • 在安裝Twisted之前,先確定你的pythonb版本,比如我的版本為python3.6.4,那我就該選cp36的,如果你的電腦是64位系統,win_amd64安裝失敗,可再安裝win32的試一下,
  • 因為我的64位系統就是安裝的win32
 pip install C:\Users\CR\Downloads\Twisted-17.5.0-cp36-cp36m-win_amd64.whl
  • 5.安裝Scrapy
  • pip install Scrapy
  • 6.Scrapy運行

  • 在D盤下建立一個pycodes檔案夾,開啟cmd
    D:\pycodes>scrapy startproject python123demo

  • New Scrapy project ‘python123demo‘, using template directory ‘c:\\users\\jing\\appdata\\local\\programs\\python\\python36-32\\lib\\site-packages\\scrapy\\templates\\project‘, created in:
        D:\pycodes\python123demo

    You can start your first spider with:
        cd python123demo
        scrapy genspider example example.com
  • Scrapy安裝成功
本文轉載於:79036579

python第三方庫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.