Already installed pygame in python, and verify the installation success; But when used in pycharm shows "No module named pygame '; I really don't have pygame check the Settings of pycharm, installation package, but I also operate under matplotlib, according to the installation package is
CodePudding user response:
Pygame to install into the python interpreter pycharm you use
CodePudding user response:
File - in pycharm & gt; Settings - & gt; The Project - & gt; Project check your python Interpreter of real use environment
CodePudding user response:
I also encountered this problem, and then click on the project of the interpreter, find the PIP, under the latest version of the latest, and then in the interface, click install package, then the import in pycharm pygame this line of code is valid, you can try
CodePudding user response:
Find your project under setting editor: 1, the interpreter, click in the pop-up screen (+), 2, above the interface of the search pygame. After the search, click on the button below to package the install, will do