Pygame does not work in Pycharm despite everything works at python IDLE. It says:
AttributeError: module 'pygame' has no attribute 'init'
Even though the given information is not enough for properly answering this question, I can tell you a one cause for this error from my personal experience.
Most probably you have named your source file as pygame.py
or you have a directory named pygame somewhere in your path.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.