【问题标题】:Not able to install s3cmd offline无法离线安装 s3cmd
【发布时间】:2017-01-27 08:02:20
【问题描述】:

我们正在尝试以离线模式安装 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?

【问题讨论】:

标签: python-2.7 amazon-web-services amazon-s3 amazon-ec2 aws-sdk


【解决方案1】:

这些命令确实对我有用

sudo apt-get install python-pip

sudo pip install s3cmd

【讨论】:

    【解决方案2】:

    我在 Debian/jessie 上遇到了同样的错误。我像这样编辑了 setup.py 文件:

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

    然后进行强制安装:

    python setup.py install --force
    

    这会跳过 python-magic 包并允许安装完成。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-10-10
      • 2015-01-16
      • 2015-10-14
      • 2023-02-20
      • 2021-05-05
      相关资源
      最近更新 更多