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

Поділитися
Вставка
  • Опубліковано 29 лип 2023
  • 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-...

КОМЕНТАРІ • 137

  • @AcroIsNotAcro
    @AcroIsNotAcro 4 місяці тому +20

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

  • @MichaelMarteens
    @MichaelMarteens 8 місяців тому +1

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

  • @ezrehan
    @ezrehan 7 місяців тому +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  7 місяців тому

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

  • @blueRainbow-zw7ne
    @blueRainbow-zw7ne 8 місяців тому

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

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

  • @fabriciomiranda5773
    @fabriciomiranda5773 Місяць тому +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!

  • @opgolem6009
    @opgolem6009 10 місяців тому +7

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

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

  • @ItsQuazey
    @ItsQuazey 5 місяців тому

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

  • @Goku-sj5sm
    @Goku-sj5sm 8 днів тому

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

  • @davidlopera1699
    @davidlopera1699 9 місяців тому +1

    In one minute you resolved my problem, thanks!

  • @rahulbhakte5558
    @rahulbhakte5558 4 місяці тому

    Thanks. I got my issue resolved by changing interpreter.

  • @fevzz6778
    @fevzz6778 4 місяці тому +1

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

  • @andreykoryagin6680
    @andreykoryagin6680 4 місяці тому +1

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

  • @CreativeSteve69
    @CreativeSteve69 11 місяців тому +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.

  • @mehrdadnj6731
    @mehrdadnj6731 4 місяці тому

    Just what i needed thank you so much💙💙

  • @blasandresayalagarcia3472
    @blasandresayalagarcia3472 11 місяців тому +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  11 місяців тому +1

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

  • @priscilalazarovargas3575
    @priscilalazarovargas3575 6 місяців тому +1

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

  • @QuantumRei
    @QuantumRei 6 місяців тому +1

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

  • @guyfromslovakia
    @guyfromslovakia Місяць тому +1

    Thank u so much man! :)

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

  • @houssemellouze
    @houssemellouze 5 місяців тому

    Thank you , this video is great and easy !

  • @zamirperez3889
    @zamirperez3889 9 місяців тому +1

    you won a new subscriber, thanks for your help

  • @Jai_Shree_Ram____469
    @Jai_Shree_Ram____469 11 місяців тому +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

  • @ad05gaming65
    @ad05gaming65 8 місяців тому +1

    Thank you so much for your help

  • @kauan8723
    @kauan8723 25 днів тому +1

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

  • @harveyfoster3589
    @harveyfoster3589 5 місяців тому +1

    another common coding with russ w thanks so much

  • @barnaved2228
    @barnaved2228 8 місяців тому +1

    Thank you . May you receive divine help

  • @assan1106
    @assan1106 2 місяці тому

    Thanks you resolved my problem :)

  • @rezashir3873
    @rezashir3873 11 місяців тому +1

    thanks. this topic was so useful.

  • @Bft149
    @Bft149 10 місяців тому +1

    Thanks this whole time it was pycharm for me.

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

  • @shxynh
    @shxynh 3 місяці тому +1

    Thank you sir, thank you so much!

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

  • @vishalgarna12
    @vishalgarna12 2 місяці тому +1

    Thankyou sir 😊

  • @flyflys
    @flyflys 9 місяців тому

    Thank you! Finally i can fix this issue

  • @Bigpunishah
    @Bigpunishah Місяць тому

    FINALLY! Thanks!

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

  • @ohman5618
    @ohman5618 Місяць тому +1

    thanks for sharing , it helped a lot. :)

  • @mohamedkamel6449
    @mohamedkamel6449 Місяць тому +1

    Thank you , solved my problem

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

  • @devmanus7563
    @devmanus7563 3 місяці тому +2

    Thank you so muchhhhhhhhh it really helped

  • @user-mm4bs8sd9s
    @user-mm4bs8sd9s 10 місяців тому +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  10 місяців тому +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.

    • @user-mm4bs8sd9s
      @user-mm4bs8sd9s 10 місяців тому

      @@CodingWithRuss thank you man I appreciate the advice

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

  • @Jai_Shree_Ram____469
    @Jai_Shree_Ram____469 11 місяців тому +2

    Hi can u please make more ursina python tutorial

  • @Adamskade
    @Adamskade 6 місяців тому

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

  • @VishnuVaratharajan
    @VishnuVaratharajan 2 місяці тому

    Bless you!

  • @toja2891
    @toja2891 8 місяців тому +1

    Thank you so much !!!

  • @trendbeautyhub
    @trendbeautyhub 5 місяців тому +2

    Thanku bro

  • @adakig9450
    @adakig9450 2 місяці тому +1

    Absolute lifesaver omg

  • @YaeMikoCh
    @YaeMikoCh 7 місяців тому +1

    I didn't find "interpreter settings"

  • @allergies9259
    @allergies9259 3 місяці тому

    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!

  • @goatr-ni1od
    @goatr-ni1od 7 місяців тому +1

    VSCode was my issue thx man

  • @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 4 місяці тому +1

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

  • @siddheshkurhade4038
    @siddheshkurhade4038 4 місяці тому

    thanks for this video. you have solve my problem.

  • @SmartSchool4
    @SmartSchool4 21 день тому

    thank you

  • @user-ch2cw9jj8h
    @user-ch2cw9jj8h Місяць тому

    Thanks! I love you

  • @strikinguchiha8139
    @strikinguchiha8139 10 місяців тому

    What if its not on the list please help

  • @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 місяців тому +1

      Yes sure, check out this video for a tutorial: ua-cam.com/video/7ZR-XIDbZag/v-deo.html

    • @TamilGamingAshwin
      @TamilGamingAshwin 10 місяців тому

      @@CodingWithRuss Thanks Bro ☺️

  • @jonatanbityaev
    @jonatanbityaev 3 місяці тому

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

  • @toontoon8039
    @toontoon8039 2 місяці тому

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

  • @CryptedCoder
    @CryptedCoder 9 місяців тому

    how could i do this in sublime text

  • @GrowUp24728
    @GrowUp24728 Місяць тому

    ty bro u help a lot

  • @kokosekpl_official
    @kokosekpl_official 7 місяців тому

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

  • @Sudershnaam
    @Sudershnaam 8 місяців тому

    Thanks bro

  • @cartoonandmovies9638
    @cartoonandmovies9638 6 місяців тому

    thanks bro

  • @AnneHeytt
    @AnneHeytt 4 місяці тому

    Obrigada. Você me salvou! ❤🎉

  • @sleepinversace8270
    @sleepinversace8270 26 днів тому +1

    legend

  • @lootingmen871
    @lootingmen871 8 місяців тому +1

    thank you sooo much

  • @taibaarain2000
    @taibaarain2000 5 місяців тому +1

    Thankyou sooo muchh

  • @digitalmachine0101
    @digitalmachine0101 5 місяців тому

    Good information

  • @yashasviiitd4738
    @yashasviiitd4738 3 місяці тому

    Awesome

  • @andrewk8817
    @andrewk8817 11 днів тому

    thankd

  • @CryptedCoder
    @CryptedCoder 9 місяців тому

    Oh my gosh thank you

  • @cristiandanielhernandezsan1901
    @cristiandanielhernandezsan1901 Місяць тому

    Y si nada de esto me funciona ?

  • @bizuplays
    @bizuplays 3 місяці тому

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

  • @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 4 місяці тому

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

  • @reachreset5951
    @reachreset5951 20 днів тому

    stupid easy, perfect tutorial

  • @anastasiabobere4270
    @anastasiabobere4270 2 місяці тому

    saved my life

  • @FriskDreemurr66669
    @FriskDreemurr66669 8 місяців тому +1

    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 😫

  • @simarasena3931
    @simarasena3931 7 місяців тому

    muito obrigado, perdi mts horas tentaando resolver esse prooblema

  • @_1.a1
    @_1.a1 10 місяців тому

    I use python IDE and i cant find a solution to this please help

    • @CodingWithRuss
      @CodingWithRuss  10 місяців тому

      Which step did you get to in the video?

    • @_1.a1
      @_1.a1 10 місяців тому

      @@CodingWithRuss I did the first few it's the last step because I am in IDLE not VS

  • @user-xk3zs8wn1y
    @user-xk3zs8wn1y 9 місяців тому +1

    thanksssssssssssssssssssssssssssssssssssssssssssssssssssssssss How many days have I been trying to solve

  • @hussainx3Lv
    @hussainx3Lv 13 днів тому

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

  • @muhamadakbar2057
    @muhamadakbar2057 24 дні тому

    Where the F Interpreter setting is

  • @Lucid-wg5rr
    @Lucid-wg5rr Місяць тому

    Where is command prompt

  • @QuizTimeUK
    @QuizTimeUK 9 місяців тому +1

    PhCharm issue! Thanks.

  • @thankzcomputer
    @thankzcomputer 8 місяців тому +1

    hey my name is russ too

  • @atnguyentat8993
    @atnguyentat8993 Місяць тому

    it not working in win 7,Why

  • @MrSheep932
    @MrSheep932 Місяць тому

    i can't open cmd

  • @AlexLiberty41
    @AlexLiberty41 24 дні тому

    The last-one was help.....

  • @Zenkon27
    @Zenkon27 Місяць тому +1

    Not working …

  • @namanshah4655
    @namanshah4655 4 місяці тому

    thanks bro