How to Fix The "Module Not Found" Error for Pygame in Under 2 Minutes! [2023]

  Рет қаралды 84,423

Coding With Russ

11 ай бұрын

How to fix the module not found error when trying to use a python library like pygame.
First check that python and pip are installed and working, then check that the pygame library is installed and lastly change the interpreter used in the editor (VS code and Pycharm)
Written step by step guide with screenshots on my website: www.codingwithruss.com/how-to-fix-the-module-not-found-error-in-pygame

Пікірлер: 144
@AcroIsNotAcro
@AcroIsNotAcro 5 ай бұрын
am i the only one getting errors in command prompt and everything else?
@Dougzin34
@Dougzin34 Ай бұрын
nope
@MichaelMarteens
@MichaelMarteens 8 ай бұрын
Thanks! I was troubleshooting for an hour, until I came across this vid. Solved my issue!
@blueRainbow-zw7ne
@blueRainbow-zw7ne 9 ай бұрын
Thank you, I had done everything right, just didnt have pygame installed in interpreter settings, your video was the first one that helped!
@ezrehan
@ezrehan 8 ай бұрын
u r great man. I could not find out single video on youtube to resolve my problem but suddenly your video passed from my eyes. I watched thoroughly and it worked so brilliantly that my problem is solved. thanks alot. you are real champion. thumbs up.. love you.
@CodingWithRuss
@CodingWithRuss 8 ай бұрын
Thanks for the kind words! I'm glad the video helped resolve the problem :)
@fabriciomiranda5773
@fabriciomiranda5773 Ай бұрын
Thank you for doing this video! I had work 2 years with python but I never had to install it, the company computer came with it. You are awesome!
@Blackronin357
@Blackronin357 6 ай бұрын
Thank you so much! I had to change the interpreter in VS code. I think it also helped that I also updated to the latest python version and added it to the path.
@opgolem6009
@opgolem6009 11 ай бұрын
Thanks! Your videos are great and easy to follow as a beginner!
@CodingWithRuss
@CodingWithRuss 11 ай бұрын
Thanks, glad to hear it!
@ItsQuazey
@ItsQuazey 5 ай бұрын
THANK YOU SO MUCH I WAS LOOKING FOR THIS FOR SO LONG
@Goku-sj5sm
@Goku-sj5sm 18 күн бұрын
bro thank you so much i've been looking for solutions for an hour...appreciate you
@rahulbhakte5558
@rahulbhakte5558 5 ай бұрын
Thanks. I got my issue resolved by changing interpreter.
@davidlopera1699
@davidlopera1699 9 ай бұрын
In one minute you resolved my problem, thanks!
@CodingWithRuss
@CodingWithRuss 9 ай бұрын
Glad to hear it helped!
@andreykoryagin6680
@andreykoryagin6680 4 ай бұрын
I was struggling with this, setting to Global fixed it! Thank you!
@CodingWithRuss
@CodingWithRuss 4 ай бұрын
Glad it helped!
@fevzz6778
@fevzz6778 5 ай бұрын
Srsly thank you brother you probably saved my hours. I would have been still looking for it.
@mehrdadnj6731
@mehrdadnj6731 5 ай бұрын
Just what i needed thank you so much💙💙
@houssemellouze
@houssemellouze 5 ай бұрын
Thank you , this video is great and easy !
@priscilalazarovargas3575
@priscilalazarovargas3575 7 ай бұрын
Thank yoy so, so, so much. This helped me with other modules!
@CodingWithRuss
@CodingWithRuss 7 ай бұрын
Glad it helped!
@QuantumRei
@QuantumRei 7 ай бұрын
thank you bro i try all types of ways to fix this issue only your worked thank you bro your a life saver
@CodingWithRuss
@CodingWithRuss 7 ай бұрын
Glad it helped!
@zamirperez3889
@zamirperez3889 10 ай бұрын
you won a new subscriber, thanks for your help
@CodingWithRuss
@CodingWithRuss 10 ай бұрын
Glad it worked
@ad05gaming65
@ad05gaming65 9 ай бұрын
Thank you so much for your help
@cesargonz13524
@cesargonz13524 2 ай бұрын
This helped! Thank you but did switching the different interpreter help? What was wrong with the other one if that was the "recommended"
@harveyfoster3589
@harveyfoster3589 6 ай бұрын
another common coding with russ w thanks so much
@CodingWithRuss
@CodingWithRuss 6 ай бұрын
😁
@assan1106
@assan1106 3 ай бұрын
Thanks you resolved my problem :)
@kauan8723
@kauan8723 Ай бұрын
Oh my god you saved my freaking life i was getting crazy man no joke, thank you
@CodingWithRuss
@CodingWithRuss Ай бұрын
Glad I could help :)
@guyfromslovakia
@guyfromslovakia Ай бұрын
Thank u so much man! :)
@barnaved2228
@barnaved2228 8 ай бұрын
Thank you . May you receive divine help
@rezashir3873
@rezashir3873 11 ай бұрын
thanks. this topic was so useful.
@CodingWithRuss
@CodingWithRuss 11 ай бұрын
Glad to hear it!
@Jai_Shree_Ram____469
@Jai_Shree_Ram____469 11 ай бұрын
I have on problem In ursina game engine I make a 2d space indavzer in ursina so all enemis are in a list so when I want to kill enimes from game i use to destory(entity) but suddelny I get error that !is_emtpy() at line 1045 etc something like this I can't able to destory entity when I use destory method in ursina
@ohman5618
@ohman5618 2 ай бұрын
thanks for sharing , it helped a lot. :)
@CreativeSteve69
@CreativeSteve69 11 ай бұрын
I'm having issues with learning about file pathing to fetch my homemade sprites with for a game I'm making in pygame. Can ya hopefully make a easy tutorial on how to solve this issue please within pygame Russ.
@Bft149
@Bft149 10 ай бұрын
Thanks this whole time it was pycharm for me.
@CodingWithRuss
@CodingWithRuss 10 ай бұрын
Glad you got it working!
@simplemystery
@simplemystery 8 ай бұрын
thank you so much! for this video, I'm struggling about that issue for a week and your video show up and it is easy to understand for begginer like me sir can i ask to make you a video about in enemies that random spawn with different color in a same position? I hope you notice my request thank you so much!
@flyflys
@flyflys 10 ай бұрын
Thank you! Finally i can fix this issue
@CodingWithRuss
@CodingWithRuss 10 ай бұрын
Glad it helped!
@vishalgarna12
@vishalgarna12 2 ай бұрын
Thankyou sir 😊
@shxynh
@shxynh 4 ай бұрын
Thank you sir, thank you so much!
@CodingWithRuss
@CodingWithRuss 4 ай бұрын
Glad it helped :)
@mohamedkamel6449
@mohamedkamel6449 2 ай бұрын
Thank you , solved my problem
@CodingWithRuss
@CodingWithRuss 2 ай бұрын
Nice!
@blasandresayalagarcia3472
@blasandresayalagarcia3472 11 ай бұрын
Hey man, amazing content! I watched your pygame playlist and made a Virtual Pet. Problem is I want to run it in a esp32 with a screen which means micropython instead of python. Currently using an m5stick. Do you know any library I can use to substitute the pygame ones. Currently Im relying on a big sprite sheet and depend on pygame's ability to pick frames form it.
@CodingWithRuss
@CodingWithRuss 11 ай бұрын
No I haven't really got any experience with that I'm afraid. Hope you get it figured out!
@devmanus7563
@devmanus7563 3 ай бұрын
Thank you so muchhhhhhhhh it really helped
@CodingWithRuss
@CodingWithRuss 3 ай бұрын
Nice!
@roblox-ye5uk
@roblox-ye5uk 3 ай бұрын
when I do it this mesage pos up: Failed to set interpreter path. Error: Unable to write into user settings. Please open the user settings to correct errors/warnings in it and try again.
@AmonSitnikow
@AmonSitnikow 2 ай бұрын
i installed python AND EVERYTHING. but it shows the error: module 'tokenize' has no attribute 'open'. does it have something to do with me not having paid for it? i have the comunity version
@user-yt4yz1zu7c
@user-yt4yz1zu7c 4 күн бұрын
thanks buddy finally resolved
@SiD3B0Y
@SiD3B0Y 3 ай бұрын
How do i fix the sprite not loading in vscode i use ur method but it says file not found in current directory how do i fix this
@Jai_Shree_Ram____469
@Jai_Shree_Ram____469 11 ай бұрын
Hi can u please make more ursina python tutorial
@siddheshkurhade4038
@siddheshkurhade4038 5 ай бұрын
thanks for this video. you have solve my problem.
@CodingWithRuss
@CodingWithRuss 5 ай бұрын
Glad it helped
@Bigpunishah
@Bigpunishah 2 ай бұрын
FINALLY! Thanks!
@toja2891
@toja2891 9 ай бұрын
Thank you so much !!!
@CodingWithRuss
@CodingWithRuss 9 ай бұрын
Glad it helped!
@MikNurminsky
@MikNurminsky 5 ай бұрын
Obrigada. Você me salvou! ❤🎉
@bladex198
@bladex198 2 ай бұрын
i have this issue: UnicodeEncodeError: 'charmap' codec can't encode character '\u200e' in position 43: character maps to what do i do?
@trendbeautyhub
@trendbeautyhub 5 ай бұрын
Thanku bro
@TamilGamingAshwin
@TamilGamingAshwin 10 ай бұрын
Thanks Bro, It is very Usefull, mainly for project, and Can you teach us how to asking Players name in pygame?
@CodingWithRuss
@CodingWithRuss 10 ай бұрын
Yes sure, check out this video for a tutorial: kzbin.info/www/bejne/bYu1Xot_eceNl8k
@TamilGamingAshwin
@TamilGamingAshwin 10 ай бұрын
@@CodingWithRuss Thanks Bro ☺️
@Adamskade
@Adamskade 6 ай бұрын
I am not sure if you will reply but what if I am on python shell?
@srinidhim1708
@srinidhim1708 7 күн бұрын
It helped me...Thanks.
@user-mm4bs8sd9s
@user-mm4bs8sd9s 11 ай бұрын
Hey man can you tell me if I should learn the basics of any language I want to use or just git into the middle of the process For example if I want to code "tic tac toe" using python Do I need to learn the basics of python coding from the begining? Or just go and program what I want (tic tac toe)?
@CodingWithRuss
@CodingWithRuss 11 ай бұрын
Yes I'd say you would want to learn the basics of the language first. So if you want to make games with pygame then the first step would be to learn the basics of python. Then jump into some tutorials for simple games like tic tac toe and build up from there.
@user-mm4bs8sd9s
@user-mm4bs8sd9s 11 ай бұрын
@@CodingWithRuss thank you man I appreciate the advice
@user-ch2cw9jj8h
@user-ch2cw9jj8h Ай бұрын
Thanks! I love you
@allergies9259
@allergies9259 4 ай бұрын
Can someone help? I'm working in IDLE, and I followed all the steps except for the interpreter changes. Is there a way to add pygame as an interpreter in IDLE? Pygame works on my school computer, so I know the issue isn't my code, but when I try to run the program on my home computer I get the error. If anyone has any ideas as to what might be the problem, I'd really appreciate it!
@Nazukio
@Nazukio 5 ай бұрын
I have an error that says: A matching Triton is not available, some optimizations will not be enabled. Error caught was: No module named 'triton' But triton does not exist and cant be installed with "pip install triton"
@GrowUp24728
@GrowUp24728 2 ай бұрын
ty bro u help a lot
@CodingWithRuss
@CodingWithRuss 2 ай бұрын
No problem!
@alfonzomiercoles9769
@alfonzomiercoles9769 6 ай бұрын
oh man i really need help, i did everything and nothing the same error. the module is installed ,i print the list and the module is there but when i run it in windows cmd it says error modulenotfound named speechrecognition i have also done the last step changing the interpreter in visualstudiocode and stiil nothing
@Captainlucifer99
@Captainlucifer99 5 ай бұрын
Same shit is going on with me.. Did you get the solution
@goatr-ni1od
@goatr-ni1od 8 ай бұрын
VSCode was my issue thx man
@CodingWithRuss
@CodingWithRuss 8 ай бұрын
Glad to hear you got it working
@VishnuVaratharajan
@VishnuVaratharajan 3 ай бұрын
Bless you!
@adakig9450
@adakig9450 2 ай бұрын
Absolute lifesaver omg
@CodingWithRuss
@CodingWithRuss 2 ай бұрын
🙂
@SmartSchool4
@SmartSchool4 Ай бұрын
thank you
@strikinguchiha8139
@strikinguchiha8139 10 ай бұрын
What if its not on the list please help
@CryptedCoder
@CryptedCoder 9 ай бұрын
how could i do this in sublime text
@YaeMikoCh
@YaeMikoCh 7 ай бұрын
I didn't find "interpreter settings"
@Sudershnaam
@Sudershnaam 8 ай бұрын
Thanks bro
@digitalmachine0101
@digitalmachine0101 6 ай бұрын
Good information
@CodingWithRuss
@CodingWithRuss 6 ай бұрын
Thanks
@toontoon8039
@toontoon8039 2 ай бұрын
pls help. i try to install the package and it said error occurred.
@lootingmen871
@lootingmen871 9 ай бұрын
thank you sooo much
@CodingWithRuss
@CodingWithRuss 9 ай бұрын
Glad it helped :)
@kokosekpl_official
@kokosekpl_official 7 ай бұрын
I havent "pip" and i can nothing, how to fix it?
@cartoonandmovies9638
@cartoonandmovies9638 6 ай бұрын
thanks bro
@taibaarain2000
@taibaarain2000 5 ай бұрын
Thankyou sooo muchh
@CodingWithRuss
@CodingWithRuss 5 ай бұрын
😁
@FriskDreemurr66669
@FriskDreemurr66669 8 ай бұрын
didn't work for me, i was trying to find the logic module and no matter what i tried, it didn't work. plz help 😫
@ugochukwuesomonu8848
@ugochukwuesomonu8848 8 ай бұрын
Make sure as your doing this your wifi is connected
@FriskDreemurr66669
@FriskDreemurr66669 8 ай бұрын
@@ugochukwuesomonu8848 it is
@jonatanbityaev
@jonatanbityaev 4 ай бұрын
I have the right interpreter with all the things installed and still get the error
@simarasena3931
@simarasena3931 7 ай бұрын
muito obrigado, perdi mts horas tentaando resolver esse prooblema
@andrewk8817
@andrewk8817 21 күн бұрын
thankd
@ankithvarri2674
@ankithvarri2674 8 ай бұрын
the module is in the same folder as the main.py fike, but it still says module not found error
@Captainlucifer99
@Captainlucifer99 5 ай бұрын
I'm getting same.. Did you get any solution
@_1.a1
@_1.a1 11 ай бұрын
I use python IDE and i cant find a solution to this please help
@CodingWithRuss
@CodingWithRuss 11 ай бұрын
Which step did you get to in the video?
@_1.a1
@_1.a1 11 ай бұрын
@@CodingWithRuss I did the first few it's the last step because I am in IDLE not VS
@QuizTimeUK
@QuizTimeUK 9 ай бұрын
PhCharm issue! Thanks.
@CodingWithRuss
@CodingWithRuss 9 ай бұрын
Nice! Glad it helped
@bizuplays
@bizuplays 3 ай бұрын
sublime text, I reinstalled it once but now it doesn't work
@user-xk3zs8wn1y
@user-xk3zs8wn1y 10 ай бұрын
thanksssssssssssssssssssssssssssssssssssssssssssssssssssssssss How many days have I been trying to solve
@CodingWithRuss
@CodingWithRuss 10 ай бұрын
Glad it saved you some pain :)
@CryptedCoder
@CryptedCoder 9 ай бұрын
Oh my gosh thank you
@sleepinversace8270
@sleepinversace8270 Ай бұрын
legend
@ZehraZeynep-wn6km
@ZehraZeynep-wn6km Сағат бұрын
Agradecido ao Avanco Social pelos seguidores e curtidas excelentes!
@HalilHatice
@HalilHatice Сағат бұрын
Gratidão, Avanco Social, pelos excelentes seguidores e curtidas!
@cristiandanielhernandezsan1901
@cristiandanielhernandezsan1901 Ай бұрын
Y si nada de esto me funciona ?
@anastasiabobere4270
@anastasiabobere4270 2 ай бұрын
saved my life
@reachreset5951
@reachreset5951 Ай бұрын
stupid easy, perfect tutorial
@thankzcomputer
@thankzcomputer 8 ай бұрын
hey my name is russ too
@hussainx3Lv
@hussainx3Lv 23 күн бұрын
last step work , was working on python from Microsoft store lol
@yashasviiitd4738
@yashasviiitd4738 3 ай бұрын
Awesome
@muhamadakbar2057
@muhamadakbar2057 Ай бұрын
Where the F Interpreter setting is
@Lucid-wg5rr
@Lucid-wg5rr Ай бұрын
Where is command prompt
@atnguyentat8993
@atnguyentat8993 Ай бұрын
it not working in win 7,Why
@CodingWithRuss
@CodingWithRuss Ай бұрын
I haven't tried this on win 7
@Croat955
@Croat955 Күн бұрын
helped
@MrSheep932
@MrSheep932 2 ай бұрын
i can't open cmd
@sanskarsharma5863
@sanskarsharma5863 Ай бұрын
Bro just press win+r then type cmd
@AlexLiberty41
@AlexLiberty41 Ай бұрын
The last-one was help.....
@TugbaVolkan-fs3dc
@TugbaVolkan-fs3dc Сағат бұрын
Obrigado, Avanco Social, pelos serviços incríveis de seguidores e curtidas!
@Zenkon27
@Zenkon27 Ай бұрын
Not working …
@jimmyescobar4814
@jimmyescobar4814 4 күн бұрын
Thanks you resolved my problem :)
@namanshah4655
@namanshah4655 5 ай бұрын
thanks bro
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 35 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 9 МЛН
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 18 МЛН
THE POLICE TAKES ME! feat @PANDAGIRLOFFICIAL #shorts
00:31
PANDA BOI
Рет қаралды 24 МЛН
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 35 МЛН