2016-07-12 6 views
3

내가 명령 sudo pip install scrapy을 사용하여 scrapy를 설치하려고 해요,하지만 난 다음 종료 오류 메시지가 받고 있어요 :오류 설치 scrapy

build/temp.linux-x86_64-2.7/_openssl.c:429:30: fatal error: openssl/opensslv.h: No such file or directory 
    compilation terminated. 
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 

    ---------------------------------------- 
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tVcVY7/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-zyty58-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-tVcVY7/cryptography/ 

오류가 필요 OpenSSL에 관련된 것으로 보인다을 http://doc.scrapy.org/en/latest/intro/install.html에 따라 설치하십시오.

Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
openssl is already the newest version (1.0.2g-1ubuntu4.1). 
The following packages were automatically installed and are no longer required: 
    linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic linux-headers-4.4.0-22 
    linux-headers-4.4.0-22-generic linux-image-4.4.0-21-generic 
    linux-image-4.4.0-22-generic linux-image-extra-4.4.0-21-generic 
    linux-image-extra-4.4.0-22-generic 
Use 'sudo apt autoremove' to remove them. 
0 upgraded, 0 newly installed, 0 to remove and 135 not upgraded. 

가 어떻게이 scrapy를 설치 해결할 수 있습니다 : 나는 sudo apt-get install openssl를 실행한다면, 나는 그것이 이미 설치되어 나타 내기 위해 보이는 메시지가? 그것은 install documentation에서 말하듯이

답변

4

우분투 패키지 관리자 apt-get을 사용하여 치료를 설치하십시오. apt-get 자동 http://doc.scrapy.org/en/latest/intro/install.html#ubuntu-9 (종속성

sudo apt-get install python-scrapy 
+0

[문서] 처리됩니다 -10-or-above)는 실제로 "우분투에서 제공하는 python-scrap 패키지를 사용하지 마십시오. 일반적으로 너무 오래되어 최신 Scrapy를 따라 잡기가 느립니다." –

3

, 다음을 실행해야합니다

sudo apt-get install python-dev python-pip libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev 
3

문제는 내가 명령 sudo apt-get install libssl-dev를 통해 OpenSSL을 개발 패키지를 설치해야한다고했다.

+0

그냥, 아니 더 ... – Zulu