我们正在尝试以离线模式安装 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')
===
顺便说一句,python-magic-4.24-43.27.1 已经安装在我们的服务器中,但为什么 s3cmd 没有检测到它?
有什么方法可以跳过这些步骤并安装 s3cmd 吗?
最佳答案
这些命令对我有用
sudo apt-get install python-pip
sudo pip install s3cmd
关于python-2.7 - 无法离线安装 s3cmd,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39576418/