Download Pygame For Vscode

0 views
Skip to first unread message

Eden Kolander

unread,
Jan 18, 2024, 3:14:53 PM1/18/24
to wurtdadisti

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).

download pygame for vscode


Download ✏ ✏ ✏ https://t.co/qwLGtSgIxO



If it works in the console when you type 'python yourscript.py' but not in vs code, you should press ctrl+shift+p and use clic on Python select interpreter to switch to the right env. if it sstill doesn't work then install the package by running 'python -m pip install pygame'

If I run pip install pygame in the terminal I get Requirement already satisfied: pygame in c:\users\rohaan\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (2.0.1)

df19127ead
Reply all
Reply to author
Forward
0 new messages