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?
答案 0 :(得分:1)
我在Debian / jessie上遇到了同样的错误。我编辑了setup.py文件,如下所示:
#install_requires = ["python-dateutil", "python-magic"]
install_requires = ["python-dateutil"]
然后进行强制安装:
python setup.py install --force
这会跳过python-magic包并允许安装完成。
答案 1 :(得分:1)
这些命令确实对我有用
sudo apt-get install python-pip
sudo pip install s3cmd