I use visual studio code for coding (python) and now I have to write a program with pygame for my project and I can't import pygame in visual studio code (I can import it with the python script, it just can't be imported in visual studio code).
Another possible solution is the you could be using VS code in restricted mode.
make sure you're in a trusted browser on the app
How to import pygame in visual studio code?