简体   繁体   中英

How do I install pygame with python 3.8.3?

I am using python 3.8.3 and Spyder 4 as my editor. I am trying to install pygame but when I execute my program I'm working on, I get this error ModuleNotFoundError: No module named 'pygame' I have tried using pip install pygame and python -m pip install pygame in the command window and they all install pygame but for some reason when I execute my program I still get the "no module named 'pygame' " error. Am I doing something wrong here? What should I do to get this working?

At the moment, 6/16/2020, you cannot install the pygame libraries in python 3.8 with pip install pygame, but you can install them with a particular version of them, still for dev. You can install Python 3.8 in the command line using this version:

pip install pygame==2.0.0.dev6

Hope you find this helpful

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM