具有shutil 模块的最低版本的Python 是什么?
我正在尝试使用 shutdown.make_archive,但收到“找不到模块”错误。
然后我尝试使用Python 2.7,它成功了。
包含该模块和函数的最低 Python 版本是什么?
I am trying to use shutil.make_archive
, but I get a "module not found" error.
Then I tried using Python 2.7 and it worked.
What is the lowest Python version that contains that module and function?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
shutil doc 中,
make_archive
是 2.7 版中的新增内容。From shutil doc,
make_archive
is new in version 2.7.Shutil 至少早在 2.3 版本。 make_archive 是 2.7 中的新增内容。 shutil 文档
shutil is at least as early as 2.3. make_archive is new in 2.7. shutil doc
Python 2.7 是在
shutils
中包含make_archive
的最早版本。shutils
一般而言至少从 2.0 开始就存在。Python 2.7 is the earliest release to include
make_archive
inshutils
.shutils
in general existed since at least 2.0.