Robert Smith
Robert Smith

Reputation: 723

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.

Upvotes: 0

Views: 132

Answers (1)

Joe The Bro
Joe The Bro

Reputation: 105

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.

Upvotes: 1

Related Questions