我们正尝试在脱机模式下安装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?
发布于 2016-10-22 01:32:24
我在Debian/jessie上遇到了同样的错误。我像这样编辑了setup.py文件:
#install_requires = ["python-dateutil", "python-magic"]
install_requires = ["python-dateutil"]然后执行强制安装:
python setup.py install --force这将跳过python-magic包,并允许安装完成。
发布于 2018-09-03 17:58:41
这些命令确实对我有效
sudo apt-get install python-pip
sudo pip install s3cmdhttps://stackoverflow.com/questions/39576418
复制相似问题