pygame error: “ImportError: No module named 'pygame'”

前端 未结 6 1754
情歌与酒
情歌与酒 2021-01-18 02:25

This is my situation:

\"enter

I tried importing pygame in both py

6条回答
  •  死守一世寂寞
    2021-01-18 03:21

    You can either use cmd to install pygame type this pip install pygame (you have to make sure that python is installed) If this doesn't help Use thonny idle I use it because python doesn't work with my pc basically Thonny is a python idle which runs without the requirement of python to be installed and you can also install modules using thonny and type python code as well but make sure that if you import a module in thonny that module can be only used in thonny and can't be used in any other idle unless you install it in cmd but you don't need it as thonny idle is great so if you want to install modules like pygame in thonny 1) Open thonny 2) click on tools 3) click on open shell There you can type pip install pygame and install it successfully I have a potato pc which can't run python because it requires service pack 1 windows7 or above I don't have it I only have windows 7 so I use thonny and use pygame using thonny only. :D

提交回复
热议问题