No video

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

  Рет қаралды 99,422

Coding With Russ

Coding With Russ

Күн бұрын

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

Пікірлер: 170
@ezrehan
@ezrehan 9 ай бұрын
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 9 ай бұрын
Thanks for the kind words! I'm glad the video helped resolve the problem :)
@AcroIsNotAcro
@AcroIsNotAcro 7 ай бұрын
am i the only one getting errors in command prompt and everything else?
@Dougzin34
@Dougzin34 2 ай бұрын
nope
@ReligionAndMaterialismDebunked
@ReligionAndMaterialismDebunked 18 күн бұрын
The only issue I'm getting now is that pygame is an unknown word.
@fabriciomiranda5773
@fabriciomiranda5773 3 ай бұрын
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!
@opgolem6009
@opgolem6009 Жыл бұрын
Thanks! Your videos are great and easy to follow as a beginner!
@CodingWithRuss
@CodingWithRuss Жыл бұрын
Thanks, glad to hear it!
@MichaelMarteens
@MichaelMarteens 10 ай бұрын
Thanks! I was troubleshooting for an hour, until I came across this vid. Solved my issue!
@Bft149
@Bft149 Жыл бұрын
Thanks this whole time it was pycharm for me.
@CodingWithRuss
@CodingWithRuss Жыл бұрын
Glad you got it working!
@andreykoryagin6680
@andreykoryagin6680 6 ай бұрын
I was struggling with this, setting to Global fixed it! Thank you!
@CodingWithRuss
@CodingWithRuss 6 ай бұрын
Glad it helped!
@VladimirValchinov
@VladimirValchinov 21 күн бұрын
Lifesaver, thank you!
@blueRainbow-zw7ne
@blueRainbow-zw7ne 10 ай бұрын
Thank you, I had done everything right, just didnt have pygame installed in interpreter settings, your video was the first one that helped!
@fevzz6778
@fevzz6778 6 ай бұрын
Srsly thank you brother you probably saved my hours. I would have been still looking for it.
@Blackronin357
@Blackronin357 8 ай бұрын
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.
@FriskDreemurr66669
@FriskDreemurr66669 10 ай бұрын
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 10 ай бұрын
Make sure as your doing this your wifi is connected
@FriskDreemurr66669
@FriskDreemurr66669 10 ай бұрын
@@ugochukwuesomonu8848 it is
@Yukionnaarchive
@Yukionnaarchive 8 ай бұрын
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 8 ай бұрын
Glad it helped!
@davidlopera1699
@davidlopera1699 11 ай бұрын
In one minute you resolved my problem, thanks!
@CodingWithRuss
@CodingWithRuss 11 ай бұрын
Glad to hear it helped!
@harveyfoster3589
@harveyfoster3589 7 ай бұрын
another common coding with russ w thanks so much
@CodingWithRuss
@CodingWithRuss 7 ай бұрын
😁
@Goku-sj5sm
@Goku-sj5sm 2 ай бұрын
bro thank you so much i've been looking for solutions for an hour...appreciate you
@user-yc5mw1ww2x
@user-yc5mw1ww2x 4 күн бұрын
the video was of great help , thanks for making life easier I really be struggling over here ಥ_ಥ
@CodingWithRuss
@CodingWithRuss 3 күн бұрын
Glad it helped!
@kauan8723
@kauan8723 2 ай бұрын
Oh my god you saved my freaking life i was getting crazy man no joke, thank you
@CodingWithRuss
@CodingWithRuss 2 ай бұрын
Glad I could help :)
@rahulbhakte5558
@rahulbhakte5558 6 ай бұрын
Thanks. I got my issue resolved by changing interpreter.
@cesargonz13524
@cesargonz13524 4 ай бұрын
This helped! Thank you but did switching the different interpreter help? What was wrong with the other one if that was the "recommended"
@bobbyshades
@bobbyshades 29 күн бұрын
Thank you so much this helped a lot!
@CodingWithRuss
@CodingWithRuss 28 күн бұрын
No probs!
@0verdrive0
@0verdrive0 6 күн бұрын
bruh i was doing my code in venv and wondering why nothing was working since the past 4 days
@CodingWithRuss
@CodingWithRuss 4 күн бұрын
Glad it helped!
@priscilalazarovargas3575
@priscilalazarovargas3575 8 ай бұрын
Thank yoy so, so, so much. This helped me with other modules!
@CodingWithRuss
@CodingWithRuss 8 ай бұрын
Glad it helped!
@CreativeSteve69
@CreativeSteve69 Жыл бұрын
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.
@adakig9450
@adakig9450 4 ай бұрын
Absolute lifesaver omg
@CodingWithRuss
@CodingWithRuss 4 ай бұрын
🙂
@ItsQuazey
@ItsQuazey 7 ай бұрын
THANK YOU SO MUCH I WAS LOOKING FOR THIS FOR SO LONG
@ironheavenz
@ironheavenz Ай бұрын
In my case I had one version of python installed globally (3.11) and one installed in appdata (3.12) Apparently when I installed pygame it automatically installed into the global version and not into the appdata version, which I'm assuming it's the default because I never specified a version This means I also have to use the python version 3.11's idle to be able to test pygame in that shell, so annoying Thanks for the troubleshooting help
@textstorie
@textstorie 2 сағат бұрын
ty bro you are the best!
@YaeMikoCh
@YaeMikoCh 9 ай бұрын
I didn't find "interpreter settings"
@zamirperez3889
@zamirperez3889 11 ай бұрын
you won a new subscriber, thanks for your help
@CodingWithRuss
@CodingWithRuss 11 ай бұрын
Glad it worked
@Misbah-Yahya
@Misbah-Yahya 5 күн бұрын
thanks this helped me a lot
@CodingWithRuss
@CodingWithRuss 4 күн бұрын
No problem :)
@user-mm4bs8sd9s
@user-mm4bs8sd9s Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@CodingWithRuss thank you man I appreciate the advice
@devmanus7563
@devmanus7563 5 ай бұрын
Thank you so muchhhhhhhhh it really helped
@CodingWithRuss
@CodingWithRuss 5 ай бұрын
Nice!
@shxynh
@shxynh 5 ай бұрын
Thank you sir, thank you so much!
@CodingWithRuss
@CodingWithRuss 5 ай бұрын
Glad it helped :)
@simplemystery
@simplemystery 10 ай бұрын
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!
@Nazukio
@Nazukio 7 ай бұрын
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"
@mohamedkamel6449
@mohamedkamel6449 3 ай бұрын
Thank you , solved my problem
@CodingWithRuss
@CodingWithRuss 3 ай бұрын
Nice!
@barnaved2228
@barnaved2228 10 ай бұрын
Thank you . May you receive divine help
@blasandresayalagarcia3472
@blasandresayalagarcia3472 Жыл бұрын
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 Жыл бұрын
No I haven't really got any experience with that I'm afraid. Hope you get it figured out!
@vishalgarna12
@vishalgarna12 4 ай бұрын
Thankyou sir 😊
@VTV-M
@VTV-M 3 ай бұрын
FINALLY! Thanks!
@carkekec7664
@carkekec7664 20 күн бұрын
You are the best!
@CodingWithRuss
@CodingWithRuss 20 күн бұрын
:)
@user-yt4yz1zu7c
@user-yt4yz1zu7c Ай бұрын
thanks buddy finally resolved
@ohman5618
@ohman5618 3 ай бұрын
thanks for sharing , it helped a lot. :)
@jimmyescobar4814
@jimmyescobar4814 Ай бұрын
Thanks you resolved my problem :)
@langyan1988
@langyan1988 19 күн бұрын
ModuleNotFoundError: No module named 'imp' python3.12.2 how fix. MacBook M1
@valiash8297
@valiash8297 Ай бұрын
Hello! Can you help me? I try to install pygame on Windows 7, 32 bit. Python version 3.7. And I got message "Could not find a version that satisfies the requirenment pygame. No match distribution found for pygame"
@goatr-ni1od
@goatr-ni1od 9 ай бұрын
VSCode was my issue thx man
@CodingWithRuss
@CodingWithRuss 9 ай бұрын
Glad to hear you got it working
@roblox-ye5uk
@roblox-ye5uk 5 ай бұрын
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.
@mehrdadnj6731
@mehrdadnj6731 7 ай бұрын
Just what i needed thank you so much💙💙
@jonatanbityaev
@jonatanbityaev 5 ай бұрын
I have the right interpreter with all the things installed and still get the error
@Jai_Shree_Ram____469
@Jai_Shree_Ram____469 Жыл бұрын
Hi can u please make more ursina python tutorial
@aballofgrime7273
@aballofgrime7273 7 күн бұрын
Typing python brings up the microsoft store telling me to download it, but I already did off the python site and have it working. I don't know why it's different for me.
@AmonSitnikow
@AmonSitnikow 4 ай бұрын
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
@Jai_Shree_Ram____469
@Jai_Shree_Ram____469 Жыл бұрын
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
@rezashir3873
@rezashir3873 Жыл бұрын
thanks. this topic was so useful.
@CodingWithRuss
@CodingWithRuss Жыл бұрын
Glad to hear it!
@guyfromslovakia
@guyfromslovakia 3 ай бұрын
Thank u so much man! :)
@deepakelectronics3928
@deepakelectronics3928 Ай бұрын
Thanks, save a lot time ❤
@CodingWithRuss
@CodingWithRuss Ай бұрын
Glad it helped!
@houssemellouze
@houssemellouze 7 ай бұрын
Thank you , this video is great and easy !
@bladex198
@bladex198 4 ай бұрын
i have this issue: UnicodeEncodeError: 'charmap' codec can't encode character '\u200e' in position 43: character maps to what do i do?
@aramgrigoryan9355
@aramgrigoryan9355 Ай бұрын
I am using vscode but I don't have that button you pressed, also when I tried selecting an interpreter with the view -> Command Palette -> Python: Select Interpreter.... Well, I got an error... Visual Studio Code X Command 'Python: Select Interpreter' resulted in an error command 'python.setinterpreter' not found | OK |
@aramgrigoryan9355
@aramgrigoryan9355 Ай бұрын
PLS HELP 😭
@ad05gaming65
@ad05gaming65 10 ай бұрын
Thank you so much for your help
@trendbeautyhub
@trendbeautyhub 7 ай бұрын
Thanku bro
@TamilGamingAshwin
@TamilGamingAshwin Жыл бұрын
Thanks Bro, It is very Usefull, mainly for project, and Can you teach us how to asking Players name in pygame?
@CodingWithRuss
@CodingWithRuss Жыл бұрын
Yes sure, check out this video for a tutorial: kzfaq.info/get/bejne/bcCCYLt6qci-kZs.html
@TamilGamingAshwin
@TamilGamingAshwin Жыл бұрын
@@CodingWithRuss Thanks Bro ☺️
@flyflys
@flyflys 11 ай бұрын
Thank you! Finally i can fix this issue
@CodingWithRuss
@CodingWithRuss 11 ай бұрын
Glad it helped!
@toontoon8039
@toontoon8039 4 ай бұрын
pls help. i try to install the package and it said error occurred.
@presentation_guide_shivam
@presentation_guide_shivam Ай бұрын
Thanks a lot brother 😊
@SiD3B0Y
@SiD3B0Y 5 ай бұрын
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
@bizuplays
@bizuplays 5 ай бұрын
sublime text, I reinstalled it once but now it doesn't work
@kokosekpl_official
@kokosekpl_official 9 ай бұрын
I havent "pip" and i can nothing, how to fix it?
@srinidhim1708
@srinidhim1708 Ай бұрын
It helped me...Thanks.
@siddheshkurhade4038
@siddheshkurhade4038 6 ай бұрын
thanks for this video. you have solve my problem.
@CodingWithRuss
@CodingWithRuss 6 ай бұрын
Glad it helped
@Adamskade
@Adamskade 8 ай бұрын
I am not sure if you will reply but what if I am on python shell?
@allergies9259
@allergies9259 5 ай бұрын
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!
@sleepinversace8270
@sleepinversace8270 2 ай бұрын
legend
@user-ch2cw9jj8h
@user-ch2cw9jj8h 3 ай бұрын
Thanks! I love you
@toja2891
@toja2891 11 ай бұрын
Thank you so much !!!
@CodingWithRuss
@CodingWithRuss 11 ай бұрын
Glad it helped!
@user-xk3zs8wn1y
@user-xk3zs8wn1y 11 ай бұрын
thanksssssssssssssssssssssssssssssssssssssssssssssssssssssssss How many days have I been trying to solve
@CodingWithRuss
@CodingWithRuss 11 ай бұрын
Glad it saved you some pain :)
@alfonzomiercoles9769
@alfonzomiercoles9769 8 ай бұрын
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 6 ай бұрын
Same shit is going on with me.. Did you get the solution
@muhamadakbar2057
@muhamadakbar2057 2 ай бұрын
Where the F Interpreter setting is
@VishnuVaratharajan
@VishnuVaratharajan 4 ай бұрын
Bless you!
@strikinguchiha8139
@strikinguchiha8139 Жыл бұрын
What if its not on the list please help
@GrowUp24728
@GrowUp24728 3 ай бұрын
ty bro u help a lot
@CodingWithRuss
@CodingWithRuss 3 ай бұрын
No problem!
@cristiandanielhernandezsan1901
@cristiandanielhernandezsan1901 3 ай бұрын
Y si nada de esto me funciona ?
@reachreset5951
@reachreset5951 2 ай бұрын
stupid easy, perfect tutorial
@CryptedCoder
@CryptedCoder 11 ай бұрын
how could i do this in sublime text
@hussainx3Lv
@hussainx3Lv 2 ай бұрын
last step work , was working on python from Microsoft store lol
@digitalmachine0101
@digitalmachine0101 7 ай бұрын
Good information
@CodingWithRuss
@CodingWithRuss 7 ай бұрын
Thanks
@taibaarain2000
@taibaarain2000 7 ай бұрын
Thankyou sooo muchh
@CodingWithRuss
@CodingWithRuss 7 ай бұрын
😁
@SmartSchool4
@SmartSchool4 2 ай бұрын
thank you
@QuizTimeUK
@QuizTimeUK 11 ай бұрын
PhCharm issue! Thanks.
@CodingWithRuss
@CodingWithRuss 11 ай бұрын
Nice! Glad it helped
@ankithvarri2674
@ankithvarri2674 10 ай бұрын
the module is in the same folder as the main.py fike, but it still says module not found error
@Captainlucifer99
@Captainlucifer99 6 ай бұрын
I'm getting same.. Did you get any solution
@anastasiabobere4270
@anastasiabobere4270 4 ай бұрын
saved my life
@beafraidofthebananas
@beafraidofthebananas Ай бұрын
OMG THANK YOU
@CamTCai
@CamTCai 29 күн бұрын
thanks!
@MikNurminsky
@MikNurminsky 6 ай бұрын
Obrigada. Você me salvou! ❤🎉
@_1.a1
@_1.a1 Жыл бұрын
I use python IDE and i cant find a solution to this please help
@CodingWithRuss
@CodingWithRuss Жыл бұрын
Which step did you get to in the video?
@_1.a1
@_1.a1 Жыл бұрын
@@CodingWithRuss I did the first few it's the last step because I am in IDLE not VS
@christinanataliapuspita8526
@christinanataliapuspita8526 14 күн бұрын
Thankkssss
@CodingWithRuss
@CodingWithRuss 12 күн бұрын
No problem :)
@Sudershnaam
@Sudershnaam 10 ай бұрын
Thanks bro
@thankzcomputer
@thankzcomputer 10 ай бұрын
hey my name is russ too
How to Fix "No Module Named..." Error in Python | Python Tutorial
7:07
2 YEARS of PYTHON Game Development in 5 Minutes!
4:54
Coding With Russ
Рет қаралды 903 М.
English or Spanish 🤣
00:16
GL Show
Рет қаралды 8 МЛН
白天使选错惹黑天使生气。#天使 #小丑女
00:31
天使夫妇
Рет қаралды 15 МЛН
Dad Makes Daughter Clean Up Spilled Chips #shorts
00:16
Fabiosa Stories
Рет қаралды 3,1 МЛН
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Wian
Рет қаралды 8 МЛН
Get Started in Pygame in 10 minutes!
10:19
Coding With Russ
Рет қаралды 311 М.
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 552 М.
[FIX] No Module Named ' torch._six '
2:55
CRIMELAB357
Рет қаралды 4 М.
C++ Developer Learns Python
9:26
PolyMars
Рет қаралды 2,7 МЛН
How to Fix PyCharm Import Error and Setup Your Interpreter
9:47
Tech With Tim
Рет қаралды 538 М.
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 187 М.
ModuleNotFoundError: No module named 'distutils' in Python Solved
9:00
BYTECH TECHNOLOGIES
Рет қаралды 23 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 398 М.
English or Spanish 🤣
00:16
GL Show
Рет қаралды 8 МЛН