python–s3cmd ImportError:没有名为S3.Exceptions的模块

python–s3cmd ImportError:没有名为S3.Exceptions的模块,第1张

概述安装并尝试运行s3cmd 1.0.0后收到错误s3cmd -h Problem: ImportError: No module named S3.Exceptions S3cmd: unknown version. Module import problem? Traceback (most recent call last): File '/u

安装并尝试运行s3cmd 1.0.0后收到错误

s3cmd -hProblem: importError: No module named S3.ExceptionsS3cmd:   unkNown version. Module import problem?Traceback (most recent call last):  file "/usr/bin/s3cmd",line 1995,in 

升级到最新的Amazon linux发行版2015.03.0后出现此错误最佳答案看起来错误发生是因为python2.7现在是Amazon linux 2015.03.0中的默认python版本如果你将python改回2.6并运行s3cmd它应该没有问题

update-alternatives --set python /usr/bin/python2.6s3cmd -h

运行s3cmd命令后,您可以将python放回2.7以获取yum和其他实用程序:

update-alternatives --set python /usr/bin/python2.7yum install 
总结

以上是内存溢出为你收集整理的python – s3cmd ImportError:没有名为S3.Exceptions的模块全部内容,希望文章能够帮你解决python – s3cmd ImportError:没有名为S3.Exceptions的模块所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1048493.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)