(Dec-17-2017, 01:32 AM)Klar Wrote: Doing that makes it say that module has no attribute init()
This means
- Your installation is messed up or
- you named a file or directory "pygame" and it is trying to import that instead of the proper pygame.
If you didnt name anything "pygame" then there is something wrong with the installation (of pygame). If you uninstalled pygame and now you get a no module named pygame error, we can rule out the file/directory named pygame, as that would still load the wrongly named module you created even after uninstalling pygame. Unless for some reason you added a directory named "pygame" yourself in the python library?
How did you install pygame? State explicitly what you did, where you got it from (inlcude link here), any output or error you had while installing it, etc. Did you compile it yourself or did you install a wheel? Did you install it with pip? Either way show the command prompt output from either of them. How many python versions do you have on your computer? For all we know you are getting it from an odd source that has a directory named pygame in it loading it incorrectly.
We can only tell what is wrong by how much information you give...and the less you give, the more likely we are not going to diagnose it. When we tell you to run something and give us the info that is a way for us to help diagnose the problem. Like you never responded with the output of
this. So basically at this point i cant help you as you are not running the code i am giving you to help diagnose your problem.