Question

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?

Était-ce utile?

La solution

From shutil doc, make_archive is new in version 2.7.

Autres conseils

shutil is at least as early as 2.3. make_archive is new in 2.7. shutil doc

Python 2.7 is the earliest release to include make_archive in shutils. shutils in general existed since at least 2.0.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top