以安裝scrapy為例:
如:pip install scrapy 時出現(xiàn):
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
https://964279924.ctfile.com/fs/1445568-239446865
或
https://pan.baidu.com/s/1q2Nj41Xk85CHHv7_zOhQIA 密碼:qbba如果出現(xiàn)了.Net framework版本過低,小于4.5的最低版本要求:
[如果沒出現(xiàn)這個問題滚停,跳過這一步]
重新安裝 .Net framework 更高的版本:
https://support.microsoft.com/en-us/help/3151800/the-net-framework-4-6-2-offline-installer-for-windows
再安裝Microsoft visual c++ 14.0廓握,
- 啟動電腦抽减,再安裝scrapy
pip install scrapy