Тёмный

How to Install and Setup PyGame with Visual Studio Code | PyGame in VS Code (2023) 

The Code City
Подписаться 18 тыс.
Просмотров 71 тыс.
50% 1

In this video, I'll show you how you can install pygame, and setup pygame in visual studio code so you can create amazing games using PyGame in Visual Studio Code.
Install PIP: • How to Install PIP in ...
Buy me a coffee: www.buymeacoff...
🌐Connect with me:
- TikTok: tiktok.com/@thecodecity
- Twitter: / thecodecity
- Instagram: / thecodecity
- Website: thecodecity.com
#pygame #vsccode #pythongame #pythongametutorial

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 52   
@kabirmishra8432
@kabirmishra8432 3 месяца назад
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\program files\\python38\\Lib\\site-packages\\pygame' Consider using the `--user` option or check the permissions. How do i fix this
@jonathanowen9917
@jonathanowen9917 9 дней назад
Perfect! Works just like you said.
@ibo7684
@ibo7684 Год назад
in the output it says:"No module named 'pygame'"
@nici7077
@nici7077 10 месяцев назад
same dude
@TheCodeCity
@TheCodeCity 10 месяцев назад
It is usually because of python version. What python version are you using? You might need to update python version.
@nocoarto
@nocoarto 9 месяцев назад
​​​​​​@@TheCodeCityHello, the Python I use is version 3.9.10 and I have the same problem. When I tried to import, I couldn't find pygame but rather pygame_sdl2 which I don't think they are the same. Never mind, I solved just like how @TheCodeCity mentioned. I updated my Python to 3.12.1 and it works! Thank you so much! Here is a video link incase someone need it: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-0x_MEKr0OJQ.htmlsi=d7mzUz3997cSVeOW And here's another link if the above still didn't work. Note that you will need to install another interpreter(Anaconda) for the method below: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ridF3NkgCGE.htmlsi=29RCMdprU4KSB4fo
@carliiitos27
@carliiitos27 2 месяца назад
@@TheCodeCity How do you do that?
@ketannitrogod7701
@ketannitrogod7701 27 дней назад
how to play this game and get score
@ArmutSesaBS
@ArmutSesaBS 8 месяцев назад
pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + pip install pygame + ~~~ + CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundExceptio n + FullyQualifiedErrorId : CommandNotFoundException how to fix
@TheCodeCity
@TheCodeCity 8 месяцев назад
Try this: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-jPRIzVZulhA.html
@shuncho7844
@shuncho7844 9 месяцев назад
AttributeError: partially initialized module 'pygame' has no attribute 'init' (most likely due to a circular import) how do i fix this
@roboterminator_T-1000
@roboterminator_T-1000 5 месяцев назад
might be a syntax error I just got something like that it was because I misspelled the word on the screen i was one letter off. or it could be other syntax errors
@ketannitrogod7701
@ketannitrogod7701 27 дней назад
and also thanx😘😘
@tc09022
@tc09022 5 месяцев назад
Import "pygame" could not be resolved Pylance(reportMissingImports) you know how to fix this?
@thepianonotes9055
@thepianonotes9055 4 месяца назад
Use that pip code in cmd
@mahmoudnajib437
@mahmoudnajib437 2 месяца назад
I tried all the ways in earth and it always give me Metadata-generation-failed error ? Help
@avogaster
@avogaster Месяц назад
short and effective!! 👌
@TheCodeCity
@TheCodeCity Месяц назад
Thanks for watching, glad it helped!
@thegamerking5264
@thegamerking5264 11 месяцев назад
After I run command pip install pygame it show an error
@TheCodeCity
@TheCodeCity 10 месяцев назад
What's the error?
@Pato_2004
@Pato_2004 10 месяцев назад
for me its 'pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + pip install Pygame + ~~~ + CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException@@TheCodeCity
@TheCodeCity
@TheCodeCity 10 месяцев назад
Looks like pip is not installed, check this: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-kJaOGOA-MhY.html@@Pato_2004
@ajirotech
@ajirotech 8 месяцев назад
It worked thanks
@TheCodeCity
@TheCodeCity 8 месяцев назад
You're welcome! glad it helped :)
@smifahim
@smifahim 7 месяцев назад
AttributeError: partially initialized module 'pygame' has no attribute '__path__' (most likely due to a circular import) During handling of the above exception, another exception occurred:
@TheCodeCity
@TheCodeCity 7 месяцев назад
When are you getting this error?
@Leo_12750
@Leo_12750 5 месяцев назад
Teacher 🤓☝, I have a problem...: "pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or executable program. Check if you spelled the name correctly or, If you included a path, verify that the path is correct and try again. Online: 1 Character: 1 + pip install pygame + ~~~ + CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException"
@bakerboyplayz5254
@bakerboyplayz5254 4 месяца назад
it worked for me by running the pip command in cmd rather than on vscode
@SSH_ENG
@SSH_ENG 2 месяца назад
how do i import it in my game without the example
@ibrahimhegazi4414
@ibrahimhegazi4414 6 месяцев назад
When I did this it was installed in python and I couldn't use it in Vs code
@taylorcummings473
@taylorcummings473 10 месяцев назад
thank you so much!
@TheCodeCity
@TheCodeCity 10 месяцев назад
You're welcome!
@heatherlee4366
@heatherlee4366 9 месяцев назад
Mine says 'pip' is not recognized
@TheCodeCity
@TheCodeCity 8 месяцев назад
Check this: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-jPRIzVZulhA.html
@sethorus5828
@sethorus5828 Месяц назад
Thanks. Also, you can just pin VSC to your toolbar. ;) Shalom.
@TheCodeCity
@TheCodeCity Месяц назад
Thanks for watching, glad it helped!
@honeychan2729
@honeychan2729 10 месяцев назад
error it says could not find a version that satisfies the requirements pygame
@TheCodeCity
@TheCodeCity 10 месяцев назад
It is usually because of python version. What python version are you using? You might need to update python version.
@gavinriling6437
@gavinriling6437 7 месяцев назад
I'm also getting the No module named pygame even though i have python 3.12.2
@TheCodeCity
@TheCodeCity 7 месяцев назад
Did pygame install when you used pip to install as shown in the video?
@GeorgiaMade404
@GeorgiaMade404 3 месяца назад
command not found
@JackPlaysMinecraft575
@JackPlaysMinecraft575 9 месяцев назад
Not helpful at all does not work
@aruha7124
@aruha7124 9 месяцев назад
nice
@MARIOGAMING909
@MARIOGAMING909 9 месяцев назад
Thanks bhai 💙
@DuminduViraj-e6s
@DuminduViraj-e6s Год назад
thanks mate
@TheCodeCity
@TheCodeCity Год назад
You're welcome bud!
@vrtexxradiation
@vrtexxradiation 9 месяцев назад
worst programming language to work with.
@TheCodeCity
@TheCodeCity 9 месяцев назад
Why? Python is great!
@vrtexxradiation
@vrtexxradiation 9 месяцев назад
@@TheCodeCity dont get me wrong on this lmao i love the language, but i wouldnt prefer it for my ACTUAL coding language as my computer has issues loading "pip" all the time. so i prefer c++ or js.
@TheCodeCity
@TheCodeCity 9 месяцев назад
@@vrtexxradiation Oh okay, I used to have that issue too.
@pankajgoikar4158
@pankajgoikar4158 8 месяцев назад
Thank you so much. Precisely the thing I wanted.
@TheCodeCity
@TheCodeCity 8 месяцев назад
Glad it helped!