Domanda

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?

È stato utile?

Soluzione

From shutil doc, make_archive is new in version 2.7.

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top