0

Im using vs code and when I write the command "pip install pygame" it tells me this "Requirement already satisfied: pygame in /usr/local/lib/python3.9/site-packages (2.0.1)" However, when I try to import pygame it doesnt work. It simply states "line 1, in <module> import pygame ImportError: No module named pygame"

If anyone can help me that would be awesome :)

Rainier1
  • 73
  • 6

1 Answers1

0

I think you need to set up your virtual environment. https://code.visualstudio.com/docs/python/environments

But i would recommend you to you use PyCharm, when you create project it automatically creates venv for you and you dont need to care about it.

Vova
  • 38
  • 9