Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

 
Share this answer
 
Comments
Maciej Los 30-Jun-20 3:07am    
5ed!
In addition to solution #1 by Richard MacCutchan, i'd suggest to read this: Python Pygame Introduction[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900