I have downloaded pygames and removed it and redownloaded it, I have downloaded python 2.9 and removed it and redownloaded it. Pygames is still not working for me when I write simple code down, any ideas why? I am trying to make a simple snake game.
CodePudding user response:
Pygames only works for python 2.7 and versions lower. If you downloaded a later version make sure you go into settings in pygame and make sure you have selected python 2.7 or a lower version to run. You can also do this by making a new project and when you name it, scroll down to base interpreter and select python 2.7 since pygames will most likely have selected python 2.9 which will not work for pygames. Pygames has not been updated to work with python 2.9.