2017-12-12 7 views
0

몇 달 전에 작성한 프로젝트 중 하나 인 Scrapy를 사용하여 우분투 이미지를 기본 OS로 빌드 할 수 없습니다. 그것 보여주는 다음과 같은 의존성 오류 - 나는 Scrapy의 의존성 여부를 제어 할 수 없습니다 내가 파이썬 3 alongwith, Scrapy 1.4.0, 최신 버전을 사용하고 것처럼잘못된 환경 마커 오류로 인해 치료 기반 프로젝트를 만들 수 없습니다.

Downloading/unpacking cryptography>=2.1.4 (from pyOpenSSL->Scrapy==1.4.0->-r /app/requirements.txt (line 3)) 
    Running setup.py (path:/tmp/pip_build_root/cryptography/setup.py) egg_info for package cryptography 
    error in cryptography setup command: Invalid environment marker: platform_python_implementation != 'PyPy' 
    Complete output from command python setup.py egg_info: 
    error in cryptography setup command: Invalid environment marker: platform_python_implementation != 'PyPy' 

, 나는 확실하지 오전 내 옵션은 지금 무엇입니까? 다음

pip3 다음 -r requirements.txt

내 requirements.txt이

lxml==3.8.0 
psycopg2==2.7.3.1 
Scrapy==1.4.0 
Twisted==17.5.0 
validators==0.12.0 
tweepy==3.5.0 

업데이트 모습입니다 설치 내가 종속성을 설치하는 데 사용하는 명령입니다 :

빌드가 Mac mach 우분투 컴퓨터에서 작동하지 않는 동안 아래와 같이 입력하십시오. 참고 : 심지어 성공적으로 빌드에 대한 platform_python_implementation != "PyPy" 아래 그림과 같이 경고 않습니다 -

Collecting cffi>=1.7; platform_python_implementation != "PyPy" (from cryptography>=2.1.4->pyOpenSSL->Scrapy==1.4.0->-r requirements.txt (line 3)) 
    Downloading cffi-1.11.2-cp35-cp35m-macosx_10_6_intel.whl (240kB) 
    100% |████████████████████████████████| 245kB 623kB/s 
Collecting asn1crypto>=0.21.0 (from cryptography>=2.1.4->pyOpenSSL->Scrapy==1.4.0->-r requirements.txt (line 3)) 
    Downloading asn1crypto-0.23.0-py2.py3-none-any.whl (99kB) 
    100% |████████████████████████████████| 102kB 830kB/s 
Collecting pycparser (from cffi>=1.7; platform_python_implementation != "PyPy"->cryptography>=2.1.4->pyOpenSSL->Scrapy==1.4.0->-r requirements.txt (line 3)) 
Building wheels for collected packages: zope.interface, oauthlib 
    Running setup.py bdist_wheel for zope.interface ... done 
    Stored in directory: /Users/rahul/Library/Caches/pip/wheels/8b/39/98/0fcb72adfb12b2547273b1164d952f093f267e0324d58b6955 
    Running setup.py bdist_wheel for oauthlib ... done 
    Stored in directory: /Users/rahul/Library/Caches/pip/wheels/e5/46/f7/bb2fde81726295a13a71e3c6396d362ab408921c6562d6efc0 
Successfully built zope.interface oauthlib 
+1

오류 메시지에'PyPy'가 표시됩니다.'pypy'를 설치해야합니까? – furas

+0

어쩌면 나는 지난 몇 개월 동안 무엇이 바뀌 었는지 모르겠다. 이전에 명시적인 pypy 설치없이 어떻게 작동 했습니까? – comiventor

+0

그것은'cryptography'를 다운로드하려고 시도하는 것을 보여줍니다. 어쩌면'pypy'를 사용하는 새로운 버전이있을 것입니다. – furas

답변

1

문제가 pip3 업그레이드와 관련되었다. 패키지에 참여한 사람이 팁을 공유했습니다. here