Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14040

In VS Code, why does it keep saying "pygame" is not accessed Pylance" and "Import Pygame cannot be resolved" when I try to import pygame?

$
0
0

I'm new to VS Code, and I previously did a little coding on it on another laptop. I recently got a new one, and I don't understand why I am facing these problems, as it never occurred to me in the old laptop. I went to the Terminal in VS Code and tried installing pygame, but it said it has already been installed. Please help.

Pygame being weird

I tried import pygame, and it said that Pygame is not defined. I expected pygame to be imported, which it clearly did not.


Viewing all articles
Browse latest Browse all 14040

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>