문제

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?

도움이 되었습니까?

해결책

From shutil doc, make_archive is new in version 2.7.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top