2013-01-10 1 views
0

pip install Scrapy을 실행하면 모든 것이 잘 다운로드되지만 설치가 실패합니다.Mac에서 pip를 사용하여 Scrapy를 설치하면 오류가 발생했습니다

사용 권한에 문제가 있습니까? 나는 초보자이므로, 많은 도움을 많이 주셨습니다!

요약 텍스트 터미널 출력 :

...  

running install_egg_info 

running egg_info 

writing requirements to Scrapy.egg-info/requires.txt 

writing Scrapy.egg-info/PKG-INFO 

writing top-level names to Scrapy.egg-info/top_level.txt 

writing dependency_links to Scrapy.egg-info/dependency_links.txt 

warning: manifest_maker: standard file '-c' not found 


reading manifest file 'Scrapy.egg-info/SOURCES.txt' 

reading manifest template 'MANIFEST.in' 

no previously-included directories found matching 'docs/build' 

writing manifest file 'Scrapy.egg-info/SOURCES.txt' 

Copying Scrapy.egg-info to /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Scrapy-0.16.3-py2.7.egg-info 

running install_scripts 

copying build/scripts-2.7/scrapy -> /Library/Frameworks/Python.framework/Versions/2.7/bin 

error: /Library/Frameworks/Python.framework/Versions/2.7/bin/scrapy: Permission denied 

---------------------------------------- 
Command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;__file__='/Users/pavelfage/build/Scrapy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/x6/wf5kq24j109dnkhgjcs822ym0000gn/T/pip-QgV9nv-record/install-record.txt failed with error code 1 
+0

이 설치 루트 권한이 필요한 여러 라이브러리에서 발생합니다. 명령에'sudo'를 추가하고 루트 암호를 입력하십시오. – pemistahl

답변

3

가에서 쓸 수있는/라이브러리/프레임 워크는/* 가상 환경을 사용하고있는 경우에는 먼저 환경을 활성화, sudo pip install scrapy

을 사용하고

$ . /path/to/venv/bin/activate 
$ pip install scrapy