安装 Scrapy 出错,Microsoft Visual C++ 14.0 is required

1
2
3
running build_ext
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

http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted 下载并安装 Twisted

1
2
3
4
5
6
7
8
9
10
11
D:\Download>pip install Twisted-17.1.0-cp35-cp35m-win_amd64.whl
Processing d:\qqdownload\twisted-17.1.0-cp35-cp35m-win_amd64.whl
Requirement already satisfied: constantly>=15.1 in c:\python3\lib\site-packages (from Twisted==17.1.0)
Requirement already satisfied: incremental>=16.10.1 in c:\python3\lib\site-packages (from Twisted==17.1.0)
Requirement already satisfied: Automat>=0.3.0 in c:\python3\lib\site-packages (from Twisted==17.1.0)
Requirement already satisfied: zope.interface>=4.0.2 in c:\python3\lib\site-packages (from Twisted==17.1.0)
Requirement already satisfied: attrs in c:\python3\lib\site-packages (from Automat>=0.3.0->Twisted==17.1.0)
Requirement already satisfied: six in c:\python3\lib\site-packages (from Automat>=0.3.0->Twisted==17.1.0)
Requirement already satisfied: setuptools in c:\python3\lib\site-packages (from zope.interface>=4.0.2->Twisted==17.1.0)
Installing collected packages: Twisted
Successfully installed Twisted-17.1.0

之后再 pip install Scrapy 就可以了

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
E:\Python>pip install Scrapy
Collecting Scrapy
Using cached Scrapy-1.3.3-py2.py3-none-any.whl
Requirement already satisfied: Twisted>=13.1.0 in c:\python3\lib\site-packages (from Scrapy)
Requirement already satisfied: pyOpenSSL in c:\python3\lib\site-packages (from Scrapy)
Collecting PyDispatcher>=2.0.5 (from Scrapy)
Requirement already satisfied: parsel>=1.1 in c:\python3\lib\site-packages (from Scrapy)
Requirement already satisfied: cssselect>=0.9 in c:\python3\lib\site-packages (from Scrapy)
Requirement already satisfied: six>=1.5.2 in c:\python3\lib\site-packages (from Scrapy)
Collecting service-identity (from Scrapy)
Using cached service_identity-16.0.0-py2.py3-none-any.whl
Requirement already satisfied: lxml in c:\python3\lib\site-packages (from Scrapy)
Requirement already satisfied: w3lib>=1.15.0 in c:\python3\lib\site-packages (from Scrapy)
Requirement already satisfied: queuelib in c:\python3\lib\site-packages (from Scrapy)
Requirement already satisfied: incremental>=16.10.1 in c:\python3\lib\site-packages (from Twisted>=13.1.0->Scrapy)
Requirement already satisfied: zope.interface>=4.0.2 in c:\python3\lib\site-packages (from Twisted>=13.1.0->Scrapy)
Requirement already satisfied: Automat>=0.3.0 in c:\python3\lib\site-packages (from Twisted>=13.1.0->Scrapy)
Requirement already satisfied: constantly>=15.1 in c:\python3\lib\site-packages (from Twisted>=13.1.0->Scrapy)
Requirement already satisfied: cryptography>=1.3.4 in c:\python3\lib\site-packages (from pyOpenSSL->Scrapy)
Requirement already satisfied: attrs in c:\python3\lib\site-packages (from service-identity->Scrapy)
Collecting pyasn1-modules (from service-identity->Scrapy)
Using cached pyasn1_modules-0.0.8-py2.py3-none-any.whl
Requirement already satisfied: pyasn1 in c:\python3\lib\site-packages (from service-identity->Scrapy)
Requirement already satisfied: setuptools in c:\python3\lib\site-packages (from zope.interface>=4.0.2->Twisted>=13.1.0->Scrapy)
Requirement already satisfied: idna>=2.1 in c:\python3\lib\site-packages (from cryptography>=1.3.4->pyOpenSSL->Scrapy)
Requirement already satisfied: packaging in c:\python3\lib\site-packages (from cryptography>=1.3.4->pyOpenSSL->Scrapy)
Requirement already satisfied: asn1crypto>=0.21.0 in c:\python3\lib\site-packages (from cryptography>=1.3.4->pyOpenSSL->Scrapy)
Requirement already satisfied: cffi>=1.4.1 in c:\python3\lib\site-packages (from cryptography>=1.3.4->pyOpenSSL->Scrapy)
Requirement already satisfied: pyparsing in c:\python3\lib\site-packages (from packaging->cryptography>=1.3.4->pyOpenSSL->Scrapy)
Requirement already satisfied: pycparser in c:\python3\lib\site-packages (from cffi>=1.4.1->cryptography>=1.3.4->pyOpenSSL->Scrapy)
Installing collected packages: PyDispatcher, pyasn1-modules, service-identity, Scrapy
Successfully installed PyDispatcher-2.0.5 Scrapy-1.3.3 pyasn1-modules-0.0.8 service-identity-16.0.0