pyCharm上的Scrapy安装

时间:2016-12-20 07:06:41

标签: python scrapy

我正在尝试通过项目解释器安装Scrapy,但我以错误结束。后来我尝试使用pip install Scrapy进行安装,但最终出现了同样的错误。错误详情如下:

running build_ext
generating cffi module 'build\\temp.win-amd64-2.7\\Release\\_padding.c'
    already up-to-date
    generating cffi module 'build\\temp.win-amd64-2.7\\Release\\_constant_time.c'
    already up-to-date
    generating cffi module 'build\\temp.win-amd64-2.7\\Release\\_openssl.c'
    already up-to-date
    building '_openssl' extension
    C:\Users\xxxx\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27\include "-IC:\aaaa\PC" /Tcbuild\temp.win-amd64-2.7\Release\_openssl.c /Fobuild\temp.win-amd64-2.7\Release\build\temp.win-amd64-2.7\Release\_openssl.obj
    _openssl.c
    build\temp.win-amd64-2.7\Release\_openssl.c(434) : fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory
    error: command 'C:\\Users\\xxxx\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2

1 个答案:

答案 0 :(得分:-1)

您可能缺少Microsoft C ++ for Python 2,因为无法打开的文件来自它。

下载位于:https://www.microsoft.com/en-us/download/details.aspx?id=44266