windows安裝scrapy

來源:互聯網
上載者:User

標籤:ken   manage   .com   裝包   highlight   target   出現   via   temp   

1. 安裝Twisted

直接pip install Twisted

然後報錯

    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools    ----------------------------------------Command "c:\users\zb\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;__file__=‘C:\\Users\\zb\\AppData\\Local\\Temp\\pip-build-10ew2ma_\\Twisted\\setup.py‘;f=getattr(tokenize, ‘open‘, open)(__file__);code=f.read().replace(‘\r\n‘, ‘\n‘);f.close();exec(compile(code, __file__, ‘exec‘))" install --record C:\Users\zb\AppData\Local\Temp\pip-85cixft1-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\zb\AppData\Local\Temp\pip-build-10ew2ma_\TwistedYou are using pip version 9.0.1, however version 10.0.1 is available.You should consider upgrading via the ‘python -m pip install --upgrade pip‘ command.

 

最後一句提升讓升級pip,然後運行 python -m pip install --upgrade pip 運行 

這時候我們成功升級了pip了。然後重新 安裝pip install twisted運行之後看到出現 如下錯誤

    building ‘twisted.test.raiser‘ extension    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
字面意思看需要安裝Microsoft Visual C++ 14.0 ,但是這個東西安裝起來很麻煩,而且安裝上了也不一定準確,這個時候呢,我們一般就考慮第三方的python模組安裝包
http://www.lfd.uci.edu/~gohlke/pythonlibs/

然後搜尋twisted,下載對應的版本,cp36就是python3.6x版本用的,win32是指的python的位元,cmd輸入python查看python的版本,這裡我就下載下面藍色x

 https://download.lfd.uci.edu/pythonlibs/t5yhk4lc/Twisted-18.4.0-cp36-cp36m-win32.whl

 

windows安裝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.