0

오프라인 모드에서 s3cmd를 설치하려고하는데 오류가 발생합니다.

Searching for python-magic 
Reading https://pypi.python.org/simple/python-magic/ 
Download error: [Errno 101] Network is unreachable -- Some packages may not be found! 
Couldn't find index page for 'python-magic' (maybe misspelled?) 
Scanning index of all packages (this may take a while) 
Reading https://pypi.python.org/simple/ 
Download error: [Errno 101] Network is unreachable -- Some packages may not be found! 
No local packages or download links found for python-magic. 
error:Could not find suitable distribution for Requirement.parse('python-magic') 
=== 

Btw, python-magic-4.24-43.27.1은 이미 서버에 설치되었지만 s3cmd가이를 감지하지 못하는 이유는 무엇입니까?오프라인으로 s3cmd를 설치할 수 없습니다.

이러한 단계를 건너 뛰고 s3cmd를 설치하는 방법이 있습니까?

+0

오프라인 모드 란 무엇을 의미합니까? – error2007s

+0

's3cmd'를 사용하는 대신 요즘에는 [AWS Command-Line Interface (CLI)] (http://aws.amazon.com/cli/)를 사용하는 것이 좋습니다. –

답변

0

데비안/jessie에서 같은 오류가 발생했습니다. 그래서 같은 setup.py 파일을 편집 :

#install_requires = ["python-dateutil", "python-magic"] 
install_requires = ["python-dateutil"] 

는 그런 힘이 설치 수행

python setup.py install --force 

이 파이썬 매직 패키지를 건너 뛰고 설치를 완료 할 수 있습니다.