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

Комментарии • 182

  • @ezrehan
    @ezrehan 11 месяцев назад +15

    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  11 месяцев назад

      Thanks for the kind words! I'm glad the video helped resolve the problem :)

  • @AcroIsNotAcro
    @AcroIsNotAcro 8 месяцев назад +30

    am i the only one getting errors in command prompt and everything else?

  • @opgolem6009
    @opgolem6009 Год назад +8

    Thanks! Your videos are great and easy to follow as a beginner!

  • @fabriciomiranda5773
    @fabriciomiranda5773 4 месяца назад +1

    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!

  • @bullyfromchowk3245
    @bullyfromchowk3245 5 дней назад +2

    Dudeeeeeeeeeeee Thankyouuuuu soooooooooooooo muchhhhhhhhhh!!!!!!!!!!!!!❤ that was because of the old interpreter!!!!! You saved my Computer's life X>

  • @MichaelMarteens
    @MichaelMarteens 11 месяцев назад +1

    Thanks! I was troubleshooting for an hour, until I came across this vid. Solved my issue!

  • @Bft149
    @Bft149 Год назад +2

    Thanks this whole time it was pycharm for me.

  • @andreykoryagin6680
    @andreykoryagin6680 7 месяцев назад +1

    I was struggling with this, setting to Global fixed it! Thank you!

  • @blueRainbow-zw7ne
    @blueRainbow-zw7ne 11 месяцев назад

    Thank you, I had done everything right, just didnt have pygame installed in interpreter settings, your video was the first one that helped!

  • @Khoviz
    @Khoviz 8 месяцев назад +1

    Srsly thank you brother you probably saved my hours. I would have been still looking for it.

  • @Blackronin357
    @Blackronin357 9 месяцев назад

    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.

  • @CreativeSteve69
    @CreativeSteve69 Год назад +2

    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.

  • @FriskDreemurr66669
    @FriskDreemurr66669 11 месяцев назад +2

    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 😫

  • @aballofgrime7273
    @aballofgrime7273 Месяц назад +1

    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.

  • @davidlopera1699
    @davidlopera1699 Год назад +1

    In one minute you resolved my problem, thanks!

  • @Yukionnaarchive
    @Yukionnaarchive 10 месяцев назад +1

    thank you bro i try all types of ways to fix this issue only your worked thank you bro your a life saver

  • @rahulbhakte5558
    @rahulbhakte5558 8 месяцев назад

    Thanks. I got my issue resolved by changing interpreter.

  • @harveyfoster3589
    @harveyfoster3589 9 месяцев назад +1

    another common coding with russ w thanks so much

  • @kauan8723
    @kauan8723 4 месяца назад +1

    Oh my god you saved my freaking life i was getting crazy man no joke, thank you

  • @Goku-sj5sm
    @Goku-sj5sm 3 месяца назад

    bro thank you so much i've been looking for solutions for an hour...appreciate you

  • @priscilalazarovargas3575
    @priscilalazarovargas3575 10 месяцев назад +1

    Thank yoy so, so, so much. This helped me with other modules!

  • @0verdrive0
    @0verdrive0 Месяц назад +2

    bruh i was doing my code in venv and wondering why nothing was working since the past 4 days

  • @cesargonz13524
    @cesargonz13524 5 месяцев назад

    This helped! Thank you but did switching the different interpreter help? What was wrong with the other one if that was the "recommended"

  • @nguyenlehuuquang5458
    @nguyenlehuuquang5458 Месяц назад +2

    thanks so muchhhhhhhhhhhhhh , i was struggling with this

  • @Nazukio
    @Nazukio 8 месяцев назад

    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"

  • @ironheavenz
    @ironheavenz 2 месяца назад

    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

  • @user-yc5mw1ww2x
    @user-yc5mw1ww2x Месяц назад +1

    the video was of great help , thanks for making life easier I really be struggling over here ಥ_ಥ

  • @vishalgarna12
    @vishalgarna12 5 месяцев назад +1

    Thankyou sir 😊

  • @bobbyshades
    @bobbyshades 2 месяца назад +1

    Thank you so much this helped a lot!

  • @Ri.dRi.d
    @Ri.dRi.d Год назад +1

    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  Год назад +1

      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.

    • @Ri.dRi.d
      @Ri.dRi.d Год назад

      @@CodingWithRuss thank you man I appreciate the advice

  • @VladimirValchinov
    @VladimirValchinov Месяц назад +1

    Lifesaver, thank you!

  • @ItsQuazey
    @ItsQuazey 8 месяцев назад

    THANK YOU SO MUCH I WAS LOOKING FOR THIS FOR SO LONG

  • @Jai_Shree_Ram____469
    @Jai_Shree_Ram____469 Год назад +2

    Hi can u please make more ursina python tutorial

  • @adakig9450
    @adakig9450 5 месяцев назад +1

    Absolute lifesaver omg

  • @YaeMikoCh
    @YaeMikoCh 10 месяцев назад +1

    I didn't find "interpreter settings"

  • @zamirperez3889
    @zamirperez3889 Год назад +1

    you won a new subscriber, thanks for your help

  • @mohamedkamel6449
    @mohamedkamel6449 4 месяца назад +1

    Thank you , solved my problem

  • @barnaved2228
    @barnaved2228 11 месяцев назад +1

    Thank you . May you receive divine help

  • @simplemystery
    @simplemystery 11 месяцев назад

    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!

  • @goatr-ni1od
    @goatr-ni1od 11 месяцев назад +1

    VSCode was my issue thx man

  • @devmanus7563
    @devmanus7563 6 месяцев назад +2

    Thank you so muchhhhhhhhh it really helped

  • @blasandresayalagarcia3472
    @blasandresayalagarcia3472 Год назад +2

    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  Год назад +1

      No I haven't really got any experience with that I'm afraid. Hope you get it figured out!

  • @Jai_Shree_Ram____469
    @Jai_Shree_Ram____469 Год назад +1

    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

  • @roblox-ye5uk
    @roblox-ye5uk 6 месяцев назад

    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.

  • @shxynh
    @shxynh 7 месяцев назад +1

    Thank you sir, thank you so much!

  • @langyan1988
    @langyan1988 Месяц назад

    ModuleNotFoundError: No module named 'imp' python3.12.2 how fix. MacBook M1

  • @ohman5618
    @ohman5618 5 месяцев назад +1

    thanks for sharing , it helped a lot. :)

  • @jonatanbityaev
    @jonatanbityaev 7 месяцев назад

    I have the right interpreter with all the things installed and still get the error

  • @RonnyDsouza-y6e
    @RonnyDsouza-y6e 3 месяца назад

    thanks buddy finally resolved

  • @AmonSitnikow
    @AmonSitnikow 5 месяцев назад

    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

  • @flyflys
    @flyflys Год назад

    Thank you! Finally i can fix this issue

  • @Misbah-Yahya
    @Misbah-Yahya Месяц назад +1

    thanks this helped me a lot

  • @valiash8297
    @valiash8297 2 месяца назад

    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"

  • @jimmyescobar4814
    @jimmyescobar4814 3 месяца назад

    Thanks you resolved my problem :)

  • @rezashir3873
    @rezashir3873 Год назад +1

    thanks. this topic was so useful.

  • @trendbeautyhub
    @trendbeautyhub 8 месяцев назад +2

    Thanku bro

  • @aramgrigoryan9355
    @aramgrigoryan9355 2 месяца назад

    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 |

  • @bladex192
    @bladex192 5 месяцев назад

    i have this issue: UnicodeEncodeError: 'charmap' codec can't encode character '\u200e' in position 43: character maps to what do i do?

  • @bizuplays
    @bizuplays 6 месяцев назад

    sublime text, I reinstalled it once but now it doesn't work

  • @SiD3B0Y
    @SiD3B0Y 6 месяцев назад

    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

  • @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  Год назад +1

      Yes sure, check out this video for a tutorial: ruclips.net/video/7ZR-XIDbZag/видео.html

    • @TamilGamingAshwin
      @TamilGamingAshwin Год назад

      @@CodingWithRuss Thanks Bro ☺️

  • @ad05gaming65
    @ad05gaming65 Год назад +1

    Thank you so much for your help

  • @kokosekpl_official
    @kokosekpl_official 10 месяцев назад

    I havent "pip" and i can nothing, how to fix it?

  • @toontoon8039
    @toontoon8039 5 месяцев назад

    pls help. i try to install the package and it said error occurred.

  • @knightwingo2089
    @knightwingo2089 Месяц назад +1

    HE SAVED ME

  • @allergies9259
    @allergies9259 7 месяцев назад

    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!

  • @VTV-M
    @VTV-M 5 месяцев назад

    FINALLY! Thanks!

  • @guyfromslovakia
    @guyfromslovakia 4 месяца назад +1

    Thank u so much man! :)

  • @mehrdadnj6731
    @mehrdadnj6731 8 месяцев назад

    Just what i needed thank you so much💙💙

  • @textstorie
    @textstorie Месяц назад +1

    ty bro you are the best!

  • @Adamskade
    @Adamskade 9 месяцев назад

    I am not sure if you will reply but what if I am on python shell?

  • @houssemellouze
    @houssemellouze 8 месяцев назад

    Thank you , this video is great and easy !

  • @carkekec7664
    @carkekec7664 Месяц назад +1

    You are the best!

  • @sleepinversace8270
    @sleepinversace8270 4 месяца назад +1

    legend

  • @alfonzomiercoles9769
    @alfonzomiercoles9769 9 месяцев назад

    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 8 месяцев назад +1

      Same shit is going on with me.. Did you get the solution

  • @siddheshkurhade4038
    @siddheshkurhade4038 8 месяцев назад

    thanks for this video. you have solve my problem.

  • @ankithvarri2674
    @ankithvarri2674 11 месяцев назад

    the module is in the same folder as the main.py fike, but it still says module not found error

    • @Captainlucifer99
      @Captainlucifer99 8 месяцев назад

      I'm getting same.. Did you get any solution

  • @deepakelectronics3928
    @deepakelectronics3928 2 месяца назад

    Thanks, save a lot time ❤

  • @strikinguchiha8139
    @strikinguchiha8139 Год назад

    What if its not on the list please help

  • @EnesMiranBüyükbayram
    @EnesMiranBüyükbayram Год назад +1

    thanksssssssssssssssssssssssssssssssssssssssssssssssssssssssss How many days have I been trying to solve

  • @presentation_guide_shivam
    @presentation_guide_shivam 2 месяца назад

    Thanks a lot brother 😊

  • @CryptedCoder
    @CryptedCoder Год назад

    how could i do this in sublime text

  • @QuizTimeUK
    @QuizTimeUK Год назад +1

    PhCharm issue! Thanks.

  • @ritam8679
    @ritam8679 21 день назад

    its was very helpful

  • @muhamadakbar2057
    @muhamadakbar2057 4 месяца назад

    Where the F Interpreter setting is

  • @_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

  • @srinidhim1708
    @srinidhim1708 3 месяца назад

    It helped me...Thanks.

  • @reachreset5951
    @reachreset5951 3 месяца назад

    stupid easy, perfect tutorial

  • @toja2891
    @toja2891 Год назад +1

    Thank you so much !!!

  • @hussainx3Lv
    @hussainx3Lv 3 месяца назад

    last step work , was working on python from Microsoft store lol

  • @VishnuVaratharajan
    @VishnuVaratharajan 6 месяцев назад

    Bless you!

  • @amdel3031
    @amdel3031 19 дней назад

    thankyu very so much my very friend

  • @ПавлоСачок
    @ПавлоСачок 4 месяца назад

    Thanks! I love you

  • @Goodstudy0
    @Goodstudy0 4 месяца назад

    thank you

  • @thankzcomputer
    @thankzcomputer 11 месяцев назад +1

    hey my name is russ too

  • @digitalmachine0101
    @digitalmachine0101 9 месяцев назад

    Good information

  • @GrowUp24728
    @GrowUp24728 5 месяцев назад

    ty bro u help a lot

  • @Lucid-wg5rr
    @Lucid-wg5rr 4 месяца назад

    Where is command prompt

  • @lootingmen871
    @lootingmen871 Год назад +1

    thank you sooo much

  • @anastasiabobere4270
    @anastasiabobere4270 5 месяцев назад

    saved my life