Setup Python, Pygame in VSCode 2020. Fixed VSCode pygame error

preview_player
Показать описание
How to download Python
Download Pygame module using pip
pip install pygame --pre

TO FIX THE ERROR
Module 'pygame' has no 'init' member

GO TO
File - Preferences - Settings

enter

- - ignored-modules=pygame

and done .
Рекомендации по теме
Комментарии
Автор

Thank you for this tutorial. My vscode now looks so much cleaner! Especially with a theme on it!

CodingWithBen
Автор

Thanks bro
It was very much helpfull for me
You should get an award🏆🏆🏆🏆🏆🏆🏆🏆

yashjaswal.
Автор

you saved me from damn cancer bro thanks pylint sucks sometimes

berkalkan
Автор

Thank you so much bro, this was killing me!

cogema
Автор

I've installed Python, when type in the pip command, every single word causes an error that it's undefined.

hollyowens
Автор

despite downloading pygame, i don’t seem to be able to import it, it still classified as a missing import, can you help?

wise_beanss
Автор

still not working in python console it works but on hre

-Cheat
Автор

where are you typing pip install pygame --pre in? You say open your "dominant" I think, but I don't know how to do that or what that is

tippitytoptunes
Автор

I am getting import error in vs code while running and not getting the output something like pylance

echoplexwontmiss
Автор

hi! i did that and it still show me this AttributeError: module 'pygame' has no attribute 'init' i can´t run my code :(

ArguetaLab
Автор

i'm getting an attribute error saying that Sysfont attribute does not exist. someone help?

eliasjohn
Автор

Pygame.time.clock clock attribute not found please fixed this problem

sonaikhawas
Автор

'pip' is not recognized as an internal or external command,
operable program or batch file this is what it says, any ideas?

jakubkohak
Автор

Can I have a copy of the code you used in making snake game💕

edwardskieadz
Автор

Don't do that, if you do that you will not see any error at all not only pygame error

erel