Click here to Skip to main content
14,577,799 members
Rate this:
Please Sign up or sign in to vote.
See more:
ImportError: cannot import name 'ZipFile' from 'zipfile' (c:\users\admin\appdata\local\programs\python\python37-32\lib\zipfile.py)


This error was showing when I type the following in the terminal or powershell :

pip install pygame

What I have tried:

from zipfile import *
fpath = '{}_{}_{}.zip'.format(str(date, day, week)
zip = zipfile.ZipFile(fpath, mode='r')
Posted
Updated 29-Jun-20 21:06pm
Rate this:
Please Sign up or sign in to vote.

Solution 1

   
Comments
Maciej Los 30-Jun-20 3:07am
   
5ed!
Rate this:
Please Sign up or sign in to vote.

Solution 2

In addition to solution #1 by Richard MacCutchan, i'd suggest to read this: Python Pygame Introduction[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100