How to Fix The "Module Not Found" Error for Pygame in Under 2 Minutes! [2023]
HTML-код
- Опубликовано: 5 окт 2024
- 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...
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.
Thanks for the kind words! I'm glad the video helped resolve the problem :)
am i the only one getting errors in command prompt and everything else?
nope
The only issue I'm getting now is that pygame is an unknown word.
no
Thanks! Your videos are great and easy to follow as a beginner!
Thanks, glad to hear it!
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!
Dudeeeeeeeeeeee Thankyouuuuu soooooooooooooo muchhhhhhhhhh!!!!!!!!!!!!!❤ that was because of the old interpreter!!!!! You saved my Computer's life X>
Haha always happy to save a computer
Thanks! I was troubleshooting for an hour, until I came across this vid. Solved my issue!
Thanks this whole time it was pycharm for me.
Glad you got it working!
I was struggling with this, setting to Global fixed it! Thank you!
Glad it helped!
Thank you, I had done everything right, just didnt have pygame installed in interpreter settings, your video was the first one that helped!
Srsly thank you brother you probably saved my hours. I would have been still looking for it.
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.
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.
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 😫
Make sure as your doing this your wifi is connected
@@ugochukwuesomonu8848 it is
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.
In one minute you resolved my problem, thanks!
Glad to hear it helped!
thank you bro i try all types of ways to fix this issue only your worked thank you bro your a life saver
Glad it helped!
Thanks. I got my issue resolved by changing interpreter.
another common coding with russ w thanks so much
😁
Oh my god you saved my freaking life i was getting crazy man no joke, thank you
Glad I could help :)
bro thank you so much i've been looking for solutions for an hour...appreciate you
Thank yoy so, so, so much. This helped me with other modules!
Glad it helped!
bruh i was doing my code in venv and wondering why nothing was working since the past 4 days
Glad it helped!
This helped! Thank you but did switching the different interpreter help? What was wrong with the other one if that was the "recommended"
thanks so muchhhhhhhhhhhhhh , i was struggling with this
No probs :)
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"
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
the video was of great help , thanks for making life easier I really be struggling over here ಥ_ಥ
Glad it helped!
Thankyou sir 😊
Thank you so much this helped a lot!
No probs!
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)?
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.
@@CodingWithRuss thank you man I appreciate the advice
Lifesaver, thank you!
THANK YOU SO MUCH I WAS LOOKING FOR THIS FOR SO LONG
Hi can u please make more ursina python tutorial
Absolute lifesaver omg
🙂
I didn't find "interpreter settings"
you won a new subscriber, thanks for your help
Glad it worked
Thank you , solved my problem
Nice!
Thank you . May you receive divine help
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!
VSCode was my issue thx man
Glad to hear you got it working
Thank you so muchhhhhhhhh it really helped
Nice!
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.
No I haven't really got any experience with that I'm afraid. Hope you get it figured out!
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
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.
Thank you sir, thank you so much!
Glad it helped :)
ModuleNotFoundError: No module named 'imp' python3.12.2 how fix. MacBook M1
thanks for sharing , it helped a lot. :)
I have the right interpreter with all the things installed and still get the error
thanks buddy finally resolved
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
Thank you! Finally i can fix this issue
Glad it helped!
thanks this helped me a lot
No problem :)
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"
Thanks you resolved my problem :)
thanks. this topic was so useful.
Glad to hear it!
Thanku bro
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 |
PLS HELP 😭
i have this issue: UnicodeEncodeError: 'charmap' codec can't encode character '\u200e' in position 43: character maps to what do i do?
sublime text, I reinstalled it once but now it doesn't work
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
Thanks Bro, It is very Usefull, mainly for project, and Can you teach us how to asking Players name in pygame?
Yes sure, check out this video for a tutorial: ruclips.net/video/7ZR-XIDbZag/видео.html
@@CodingWithRuss Thanks Bro ☺️
Thank you so much for your help
I havent "pip" and i can nothing, how to fix it?
pls help. i try to install the package and it said error occurred.
HE SAVED ME
😁
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!
FINALLY! Thanks!
Thank u so much man! :)
Just what i needed thank you so much💙💙
ty bro you are the best!
You're welcome!
I am not sure if you will reply but what if I am on python shell?
Thank you , this video is great and easy !
You are the best!
:)
legend
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
Same shit is going on with me.. Did you get the solution
thanks for this video. you have solve my problem.
Glad it helped
the module is in the same folder as the main.py fike, but it still says module not found error
I'm getting same.. Did you get any solution
Thanks, save a lot time ❤
Glad it helped!
What if its not on the list please help
thanksssssssssssssssssssssssssssssssssssssssssssssssssssssssss How many days have I been trying to solve
Glad it saved you some pain :)
Thanks a lot brother 😊
how could i do this in sublime text
PhCharm issue! Thanks.
Nice! Glad it helped
its was very helpful
Where the F Interpreter setting is
I use python IDE and i cant find a solution to this please help
Which step did you get to in the video?
@@CodingWithRuss I did the first few it's the last step because I am in IDLE not VS
It helped me...Thanks.
stupid easy, perfect tutorial
Thank you so much !!!
Glad it helped!
last step work , was working on python from Microsoft store lol
Bless you!
thankyu very so much my very friend
Thanks! I love you
thank you
hey my name is russ too
Good information
Thanks
ty bro u help a lot
No problem!
Where is command prompt
It’s just cmd bro
thank you sooo much
Glad it helped :)
saved my life