安装scrapy报错
。。。。。。。。
copying src wistedinternetiocpreactoriocpsupportwinsock_pointers.c -> buildlib.win-amd64-3.6 wistedinternetiocpreactoriocpsupport
copying src wistedinternetiocpreactoriocpsupportwinsock_pointers.h -> buildlib.win-amd64-3.6 wistedinternetiocpreactoriocpsupport
copying src wistedinternetiocpreactoriocpsupportwsarecv.pxi -> buildlib.win-amd64-3.6 wistedinternetiocpreactoriocpsupport
copying src wistedinternetiocpreactoriocpsupportwsasend.pxi -> buildlib.win-amd64-3.6 wistedinternetiocpreactoriocpsupport
copying src wistedinternet est\_awaittests.py.3only -> buildlib.win-amd64-3.6 wistedinternet est
copying src wistedinternet est\_yieldfromtests.py.3only -> buildlib.win-amd64-3.6 wistedinternet est
creating buildlib.win-amd64-3.6 wistedinternet estfake_CAs
copying src wistedinternet estfake_CAschain.pem -> buildlib.win-amd64-3.6 wistedinternet estfake_CAs
copying src wistedinternet estfake_CAs
ot-a-certificate -> buildlib.win-amd64-3.6 wistedinternet estfake_CAs
copying src wistedinternet estfake_CAs hing1.pem -> buildlib.win-amd64-3.6 wistedinternet estfake_CAs
copying src wistedinternet estfake_CAs hing2-duplicate.pem -> buildlib.win-amd64-3.6 wistedinternet estfake_CAs
copying src wistedinternet estfake_CAs hing2.pem -> buildlib.win-amd64-3.6 wistedinternet estfake_CAs
copying src wistedmail est
fc822.message -> buildlib.win-amd64-3.6 wistedmail est
copying src wistedpython est\_deprecatetests.py.3only -> buildlib.win-amd64-3.6 wistedpython est
copying src wistedwordsiminstancemessenger.glade -> buildlib.win-amd64-3.6 wistedwordsim
copying src wistedwordsxishxpathparser.g -> buildlib.win-amd64-3.6 wistedwordsxish
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
----------------------------------------
Command "d:python36python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\xjd_0\AppData\Local\Temp\pip-install-v3oenju8\Twisted\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
', '
');f.close();exec(compile(code, __file__, 'exec'))" install --record C:Usersxjd_0AppDataLocalTemppip-record-b1fuy076install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:Usersxjd_0AppDataLocalTemppip-install-v3oenju8Twisted
解决办法:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted 下载twisted对应版本的whl文件(如我的Twisted-18.4.0-cp36-cp36m-win_amd64.whl),cp后面是python版本,amd64代表64位,运行命令:
pip install C:Usersxjd_0DownloadsTwisted-18.4.0-cp36-cp36m-win_amd64.whl
其中install后面为下载的whl文件的完整路径名
安装完成后,再次运行:
pip install scrapy
即可成功。