程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python program keeps reporting errors modulenotfounderror: no module namedpygame

編輯:Python

I use it when coding import pygame Want to import pygame
But there will always be an error after running ModuleNotFoundError: No module named 'pygame'

Operation results and error reporting contents :

Traceback (most recent call last): File "C:\Users\Administrator\Desktop\***\pg.py", line 1, in <module> import pygameModuleNotFoundError: No module named 'pygame'

notes : There is a folder named after me in the error report , So it's changed here

My solution ideas and tried methods

I used to put pygame File copy to scripts in , But it didn't work .

Who can help me solve this problem T^T
By the way, explain to me the reason and principle




Take the answer :

Try this.

python 3.x - ModuleNotFoundError: No module named 'pygame' - Stack Overflowhttps://stackoverflow.com/questions/51786945/modulenotfounderror-no-module-named-pygame



  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved