简体   繁体   中英

Scrapy Installation on pyCharm

I am trying to install Scrapy via the project interpreter but I end with the error. Later I tried installing using pip install Scrapy but I end up with the same error. The error details are:

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

You could be missing Microsoft C++ for Python 2, since the file that cannot be opened is from it.

The download is here: https://www.microsoft.com/en-us/download/details.aspx?id=44266

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM