简体   繁体   中英

Pygame In PyCharm

I can not import Pygame in pycharm. I've looked at videos and other posts. I have it installed, both on the PyCharm interpreter and on my system. I get an error that says no module named Pygame, module Pygame does not have an init attribute.

Go to File > Settings > Double Click on Project: (Your project name) > Project Interpreter > The + Button on the right side of the window. Also make sure you typed import pygame on the first line of the program.

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