0

Wir versuchen, s3cmd im Offline-Modus zu installieren, aber wir erhalten unter Fehler.

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 ist bereits in unserem Server installiert, aber warum s3cmd erkennt es nicht?Nicht in der Lage, s3cmd offline zu installieren

Gibt es eine Möglichkeit, diese Schritte zu überspringen und s3cmd zu installieren?

+0

Mit dem Offline-Modus bedeutet was? – error2007s

+0

Anstatt 's3cmd' zu verwenden, wird heutzutage empfohlen, die [AWS Command-Line Interface (CLI)] (http://aws.amazon.com/cli/) zu verwenden. –

Antwort

0

Ich lief auf Debian/jessie in den gleichen Fehler. Ich bearbeitete setup.py-Datei wie folgt:

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

dann eine Kraft zu installieren:

python setup.py install --force 

Damit springt die Python-magic-Paket und ermöglicht die Installation abzuschließen.

Verwandte Themen