【爬蟲】一文詳解Scrapy

Microsoft Visual C++ 14.0 is required

  • 問題:

在pip install scrapy時出現錯誤:

Microsoft Visual C++ 14.0 is required.
  • 解決辦法:

進入網站https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted,根據pyhon版本和位數下載whl文件,然後放到Anaconda3\Scripts下,並在路徑下打開cmd,執行:

pip install .\Twisted-19.2.1-cp37-cp37m-win_amd64.whl

然後執行pip install scrapy 就可以成功安裝了。

from cryptography.hazmat.bindings._openssl import ffi, lib ImportError: DLL load failed: 找不到指定的程序。

  • 問題:

安裝scrapy成功後,執行spider時,出現錯誤:

from cryptography.hazmat.bindings._openssl import ffi, 
lib ImportError: DLL load failed: 找不到指定的程序。
  • 解決辦法:
 pip install -I cryptography
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章