How to Fix "No Module Named..." Error in Python | Python Tutorial

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024
  • How to Fix ImportError "No Module Named pkg_name" in Python! First, download the package using a terminal outside of python. Then fix your %PATH% if needed. Troubleshoot for beginners.
    🤝 Support me on Patreon! / philparisi_
    🌱 Want to say thanks? buymeacoffee.c...
    🌏 More on Insta! / philparisi_
    🔥 And the rest! linktr.ee/phil...
    No module named SEABORN • How to Fix ImportError...
    No module named MATPLOTLIB • How to Fix ImportError...
    No module named PANDAS • How to Fix ImportError...
    No module named NUMPY • How to Fix ImportError...
    No module named SKLEARN • How to Fix ImportError...
    To use "import pkg_name" in a script, you must INSTALL THE PACKAGE!
    ---- For VIRTUAL ENVIRONMENTS or PYCHARM users, watch this: • How to Install Package...
    Installing
    0:04 Option 1, use the 'Terminal' in your IDE (PyCharm)
    pip3 install pkg_name OR pip install pkg_name
    This installs the package in your virtual PyCharm environment
    1:21 Option 2, open a terminal with your Operating System
    pip3 install pkg_name OR pip install pkg_name
    Also try "python -m pip3 install pkg_name"
    This installs the package onto your system, accessible to all IDE's and python interpreters.
    *********************************
    Troubleshooting (if option 2 does not work)
    2:03 Option A, check your PATH and add a new variable to it
    display current path with: 'echo %PATH%'
    find your pip.exe file
    add to path with: setx PATH "%PATH%;C:\location_of_your_pip.exe\Python39\Scripts\"
    5:32 If A doesn't work, try this: use the 'Run' application (works reliably)
    add your location of pip.exe to System Variables and User Variables
    **********************************
    Install Python and PyCharm IDE: • How to Install Python ...
    Python Coding Series: • Beginner Guide to Pyth...
    Python Macros Tutorial: • How to Make a Macro in...
    Lists in Python: • Video
    Variables in Python: • Video
    Comment below and I will help you out!
    🤝 Support me on Patreon! / philparisi_
    🌱 Want to say thanks? buymeacoffee.c...
    🌏 More on Insta! / philparisi_
    🔥 And the rest! linktr.ee/phil...

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

  • @philparisi_
    @philparisi_  2 года назад +3

    No module named SEABORN ruclips.net/video/O3QWgpkR23s/видео.html
    No module named MATPLOTLIB ruclips.net/video/xdRSuuO-7Ps/видео.html
    No module named PANDAS ruclips.net/video/nd5IbIPTXxA/видео.html
    No module named NUMPY ruclips.net/video/vIR6utJ7S4U/видео.html
    No module named SKLEARN ruclips.net/video/aelHmjwETqU/видео.html

  • @gabrielgarcia7554
    @gabrielgarcia7554 2 года назад +23

    For others that are still having the error, the problem is that you could have selected the wrong interpreter. I highly recommend the video: "Selecting the correct Python interpreter in VSCode's Python Extension" that goes over on how to solve the issue. While the YT channel uses a Mac, the same exact process can occur with a Windows PC.

    • @philparisi_
      @philparisi_  2 года назад +5

      Gabriel, this is excellently written. Thank you for sharing so others will be able to benefit from your experience! Have a good one.

    • @katiak74
      @katiak74 2 года назад +4

      You save me today! Loosing hours trying to fix it. Super thanks!

    • @philparisi_
      @philparisi_  2 года назад +4

      @@katiak74 woop woop glad to hear it Katiak!! Have a great day!

    • @rabiukhalid3907
      @rabiukhalid3907 2 года назад

      Thanks so very much man. This was the problem I was facing.

    • @fzf404
      @fzf404 2 года назад

      What if it still occurs in cmd?

  • @jameswaweru5234
    @jameswaweru5234 3 года назад +41

    2 minutes into the video and I had already solved my problem. You sir, are a lifesaver!

    • @philparisi_
      @philparisi_  3 года назад

      @james woohoo glad it worked for ya! Thank you for watching!

  • @glacialyx
    @glacialyx Год назад +4

    FIX THAT WORKED FOR ME: when creating a new project in Pycharm you need to check the box that says 'inherit global site-packages'. Making a new project and choosing that option fixed the problem for me (if you have some files in your current project, make a new project as I explained above and move the files into the new project). If it doesn't work try restarting your pc. Hope this helps

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

      Thanks for adding this Glacialyx! Happy coding :)

  • @VtojeC
    @VtojeC 2 года назад +2

    Thank you sir. I was getting depressed or frustrated more than ever by that error message. I tried everything, even reading weird-ass topics on StackOverflow I couldn't even understand. This whole problem was a real pan in the ass. I somehow repaired it using the last method, by adding a python to the path manually as by CMD it just didn't do a job. When I didnt have a required 'import' I was clicking a red bulb in PyCharm and installing missing modules by that, instead of pip. This is because it worked for some time while pip was installing stuff, but system was not able to see installed things at all.
    Now, after so much wasted time, I am terrified to modify anything, because I'm scared I will have to go through it once again. I really hope that stuff won't show up again. Thank you for helping me. I am really grateful. It may sound stupid, but looks like you saved my future, heh.

    • @philparisi_
      @philparisi_  2 года назад +1

      Hi Visione, I am so glad that I could save you from the Hell that installing packages in Python can be. Especially if you’re new, it can be super confusing as many online sources do not teach this part of the language well. Do not worry and think your troubles are because you are inadequate - this video have 200,000+ views for a reason!!
      There’s a saying I really like that applies here: “Everything is faster the second time.” Resetting everything up may seem scary, but I believe in you! If you are concerned, try something simple, like replicating the PyCharm project you are currently using (and keep your current one as a backup!).
      You got this, keep going strong and things will be easier 🙌🏽🙌🏽

  • @sagarjainmp
    @sagarjainmp 2 года назад +1

    Spent hours trying to fix the problem: "ModuleNotFoundError: No module named openpyxl". And I then was able to fix it by just watching the first 35 seconds of this video. Man, you are awesome!

    • @philparisi_
      @philparisi_  2 года назад +1

      Sweeeet happy it worked Sagar! Have an awesome week.

  • @NCR_22
    @NCR_22 2 года назад +5

    I was trying to fix it for like a hour and a half, following some tutorials, but didn't work, but suddenly found your tutorial, and finally I was able to fix it. It was in the last way you showed, which I hadn't seen before, so thank you so much!

    • @philparisi_
      @philparisi_  2 года назад +1

      Heck yeah NCR, glad it finally worked out for you! Happy programming - cheers!!

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

    Okay, that last one worked going into the variables to edit in that command, so I would suggest people do that first then go back into command prompt to enter that path in. Thank you for the help, Phil!

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

      Awesome, thank you for the feedback!!

  • @billyparham630
    @billyparham630 2 года назад +1

    one minute in, problem solved. my problem was i installed the packages via terminal that was external to pycharm, the mac terminal. once i installed the packages via terminal in the pycharm bottom bar, they were instantly recognized. thank you so much, Phil!

    • @philparisi_
      @philparisi_  2 года назад

      This is the best news I’ve heard all day! Glad it worked for you Impertiv XVII, have a great weekend!

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

    Wasted hours surfing Google and try several solutions but failed. Finally, you save me. Thank you so much.

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

      This is so great to hear Tung Le :) sorry you had a hard time with this issue, but I’m thrilled it is fixed!

  • @mayoroftarkov6581
    @mayoroftarkov6581 3 года назад +1

    DUDE I QUIT PROGRAMING 2WEEKS AGO DUE TO THIS PROBLEM BUT FOUND THIS VIDEO THANKS BRO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IM SUBING!

    • @philparisi_
      @philparisi_  3 года назад

      Haha I appreciate the excitement Mayor of Tarkov! Good luck going forward and thanks for the sub :D

    • @mayoroftarkov6581
      @mayoroftarkov6581 3 года назад +1

      @@philparisi_ :D

  • @inhwan2992
    @inhwan2992 3 года назад +43

    Wow unbelievable. You solved my issue. I can't believe it. Thank you so much. I subscribed your channel.

    • @philparisi_
      @philparisi_  3 года назад +1

      Hi In-Hwan Park! Thank you for the support and I'm glad I could help. Have a great weekend

    • @tylerwalters2224
      @tylerwalters2224 2 года назад +1

      @@philparisi_ what about for BCML to Cemu?

    • @philparisi_
      @philparisi_  2 года назад

      @@tylerwalters2224 Hey there, I haven't worked with it personally, but this should help! pypi.org/project/bcml/

    • @Imran20091990
      @Imran20091990 2 года назад +1

      Can we use the same for python in Linux

    • @philparisi_
      @philparisi_  2 года назад +1

      @@Imran20091990 probably, though I have not personally tested it. The PyCharm portion likely works, whereas the add to path will be different because you are no longer working with the Windows 10 GUI that I showed.

  • @arifabdi5220
    @arifabdi5220 2 года назад +1

    just using "terminal" and it work. my 2hours searching to fix the problem. thanks a lot sir apreciate

    • @philparisi_
      @philparisi_  2 года назад

      Perfect Arif! Glad it could solve your problem. Have a great week.

  • @lonelomessi
    @lonelomessi 2 года назад +4

    I swear I was about a minute away from losing it, thank you so much for this...

    • @philparisi_
      @philparisi_  2 года назад +1

      Ah man, classic. We've all been there. Glad I could help Al. Have a good one!

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

    i watched million of videos but this one solved the problem in a jiffy. Nailed it man. Thanks

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

      Let‘s goooo happy to help!!! Have a good one!

  • @ToribieHaqi
    @ToribieHaqi 3 года назад +4

    u saved my life bro! i thought i will never code again

    • @philparisi_
      @philparisi_  3 года назад

      Toribie I am glad you are sticking with it :D

  • @MidranKidran
    @MidranKidran 3 года назад +3

    Thanks man, I was searching for like 2 hours and nothing helped but thanks to this video it works. I started learning Python yesterday and wanted to try out something new but the modules not working was a roadblock.

    • @philparisi_
      @philparisi_  3 года назад +1

      Hi Midran, starting off can be a drag! That's why I make videos... to hopefully help the next programming and some you some time! Feel free to subscribe if you're interested in more tips down the road! Thanks for watching :)

  • @ludmiladias9346
    @ludmiladias9346 2 года назад +1

    MOÇO OBRIGADA SÉRIO, EU TAVA SURTANDO JÁ AQUI, EU TENTEI DE TUDO. JÁ TINHA FEITO OS PRIMEIROS MÉTODOS AI FIZ OS DOIS ÚLTIMOS E OIA DEU CERTO!!!! MEO DEOS Q ALEGRIA. EU TAVA ENTRANDO EM DEPRESSÃO JÁ. OBRIGADA MOÇO VC LACROU.

    • @philparisi_
      @philparisi_  2 года назад

      excelente! feliz por poder ajudar. a programação deve ser alegre, não deprimente!

  • @veltinius
    @veltinius 2 года назад +4

    Thank you! Since I'm a beginner, such problems are really hard to solve for me, but this tutorial is amazing and helped me a lot!

    • @philparisi_
      @philparisi_  2 года назад

      Glad I could you out, Bread! I made this channel for that exact reason, helping beginners. Been there many times, keep up the great work!

  • @neatdesign78
    @neatdesign78 26 дней назад +1

    It worked, thanks Phil, I had an issue with installing pystray.

    • @philparisi_
      @philparisi_  3 дня назад +1

      Awesome, thanks for reporting the success!

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

    Thanks a lot, after many hours searching on how to fix No module named ... error, I finally solved it!

  • @secilozeek
    @secilozeek 3 года назад +5

    ALLAH YOLUNU AÇIK ETSİN İNŞALLAH BU MÜBAREK RAMAZAN AYINDA YÜZÜMÜ GÜLDÜRDÜN...

    • @philparisi_
      @philparisi_  3 года назад

      TEŞEKKÜRLER, GELMEK İÇİN YILLARCA ŞANSLAR Dİ

  • @YobinBobinBlin
    @YobinBobinBlin 2 года назад +1

    wow ur goddamn genius! If python can't locate your library then install it trough pip. If python can't locate your library then install it trough pip.

    • @philparisi_
      @philparisi_  2 года назад

      Happy to help and best of luck with your project!

  • @senshun.5384
    @senshun.5384 3 года назад +6

    YO THIS ACTUALLY SOLVED MY PROBLEM THANK YOU SO MUCH!!

    • @philparisi_
      @philparisi_  3 года назад +1

      Awesome! Glad it worked for you Senshun.

  • @mike8516
    @mike8516 3 года назад +2

    You legend!!!!!!!!!! Been searching for a fix for hours!!!

    • @philparisi_
      @philparisi_  3 года назад

      Mike! Thank you commenting haha, this made my day. Have a good one!

  • @carnageofficial9691
    @carnageofficial9691 3 года назад

    i tried this solution from youtubers having million of subscribers...none of them worked...you did it bro...thank you so much

    • @philparisi_
      @philparisi_  3 года назад

      Hi Team CrYsis! Thank you for your kind comment. Happy to be helping programmers like yourself! Have an awesome week.

  • @laumichael1038
    @laumichael1038 2 года назад +1

    God thank you!! I finally found what they called terminal in pycharm. I have done installing in windows terminal and check it over and over again about PyPDF2 but no help with my pycharm code. That is weird pycharm is stand alone with Python! 🤣🤣

    • @philparisi_
      @philparisi_  2 года назад

      Haha happy this helped you through it, Lau! It can be pretty painful starting up so I’m glad you are pushing through it :)

  • @zakaria2274
    @zakaria2274 2 года назад +1

    30 seconds and i found my solution
    U R A CHAMP

    • @philparisi_
      @philparisi_  2 года назад

      Hahah awesome to hear Zakaria!! Comments like these help the channel grow - I appreciate the support :)

  • @Lukas-08
    @Lukas-08 Год назад +1

    Man you really just saved my day after i nearly lost my sanity

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

      Sorry it’s been a rough one - I feel you. Happy this helped you get through. Here’s to the week getting better 🤙🏽

  • @mlocverm
    @mlocverm 3 года назад +1

    working! thanks :>
    has been struggle with for making discord for more than 1 hour, and this video really helped me! thankyou very much!

    • @philparisi_
      @philparisi_  3 года назад +1

      Awesome! Happy programming!

    • @mlocverm
      @mlocverm 3 года назад

      thankyou! have a nice day! :D

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

    2 minutes into the video solved my problem, Thankyou!!

  • @neginsalari8
    @neginsalari8 2 года назад +1

    the best video that I could find on youtube about this topic, thx bro

    • @philparisi_
      @philparisi_  2 года назад

      Thanks Negin! Glad you found this useful. I wish you best on your future programming endeavors :)

  • @SeyriSamet
    @SeyriSamet 3 года назад +1

    It worked, you well deserved my like and comment man, I appreciate it 😍

    • @philparisi_
      @philparisi_  3 года назад

      Hi Seyri, thank you for the kind words! What would it take to deserve a sub? ;)

  • @lordstinson8095
    @lordstinson8095 2 года назад +3

    The problem I'm facing is that I've installed a module 'editdistance' using pip, but I'm still getting the "module not found" error in my jupyter notebook. The module shows up in `pip list` too. What could be the problem?

    • @philparisi_
      @philparisi_  2 года назад

      Hi Lord Stinson, I don't cover Jupyter notebooks in this video but I found this article that might help! jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/

    • @philparisi_
      @philparisi_  2 года назад

      This too www.msi.umn.edu/support/faq/how-do-i-install-python-packages-use-jupyter-notebooks

  • @WilloooIsBlue
    @WilloooIsBlue 3 года назад +5

    Thanks dude this helped out a ton. You're a legend

    • @philparisi_
      @philparisi_  3 года назад

      Hi Willooo I appreciate the kind words! Happy Programming!

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

    I get the same error but when I want to install is says "Requirement already satisfied:xxx"
    So I can not use the modules that I installed

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

      Are you using an IDE? What may be happening is that you have the packes on your computer, but the IDE can’t find em.
      Try googling how to install packages for your specific IDE!

  • @madarauchiha3649
    @madarauchiha3649 2 года назад +1

    Thank you so much Phil. Excellent tutorial for beginners like me, saved so much of my time. I subscribed.

    • @philparisi_
      @philparisi_  2 года назад

      Hi Madara! Thank you so much for the support. My apologies for the late reply, RUclips held back your comment for some weird reason. You are awesome and I wish you a great week!!!

  • @RashmiSharma-gf7vs
    @RashmiSharma-gf7vs 3 года назад +2

    Thanku so so much this helped me 😁😁😁.I tried so many tutorials none helped and I was exhausted but this helped thanku so much

    • @philparisi_
      @philparisi_  3 года назад +1

      Woohoo glad it helped Rashmi! Have a great day!

  • @jjkydyt3011
    @jjkydyt3011 3 года назад +1

    hey man you helped me i didnt even think about the packages i was working on an auto typer and i was so confused with the issue thx bro.

    • @philparisi_
      @philparisi_  3 года назад

      Absolutely man, happy to help. Good luck with your auto-typer!

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

    thank you so much for this tutorial, i got problem import shap and my problem already solved.

  • @313bodak
    @313bodak 2 года назад +1

    yooo thanks buddy i was creating a space invader game and it was showing it thanks my guy!

    • @philparisi_
      @philparisi_  2 года назад

      Glad it worked FuseBuzzFart!! Space invaders is a great game 🙌🏽🙌🏽

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

    Think you very much, it is very useful for me and solved my pb; now I can easily use the package pyDecision

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

      Awesome! Happy to hear it worked for you - happy coding :)

  • @mateusbalotin7247
    @mateusbalotin7247 2 года назад +1

    Thank you!! Hope you have a great week!!!

    • @philparisi_
      @philparisi_  2 года назад

      Hi Mateus, thank you! You enjoy the week as well :)

  • @thurstein2563
    @thurstein2563 3 года назад +4

    Thanks good man, you solved my problem so easy : )

    • @philparisi_
      @philparisi_  3 года назад

      Sweet, happy to help Thustein! Have an awesome week.

  • @meriemhaddad5354
    @meriemhaddad5354 2 года назад +3

    Thank you for this great video, and thank you again because this method works and the thing I liked about it is that it is 100% effective.

    • @philparisi_
      @philparisi_  2 года назад +1

      Hi Meriem, thank you so much for your kind words! Glad it setup your system for success. Have a great day and good luck with everything!

  • @applesauce2265
    @applesauce2265 3 года назад +1

    I had to log i to my account to like this video lol. It helped a lot.

    • @philparisi_
      @philparisi_  3 года назад +1

      Thank you Imagine Games! The support is appreciated :D

  • @GQElvie
    @GQElvie 3 года назад +1

    ok, so I am still trying to get this. you mention that if you are having trouble importing, it is because what you are trying to import is not installed. but what if it IS installed (i verified several times), and you get the error message, "no module named......" so, in pycharm, I type, import pystan, and I get this error message. ModuleNotFoundError: No module named 'pystan'

    • @philparisi_
      @philparisi_  3 года назад

      Hi Rock on Forever, this may be a result of the package not be loaded in the PyCharm virtual environment.
      Here is what I recommend:
      1. open up IDLE. run 'import pystan'
      If that works, the package is installed on your PC.
      2. I have a video on packages in PyCharm ruclips.net/video/zCO3KxV2zPI/видео.html watch that and try using the PyCharm package GUI to get that package working!
      -Phil

  • @ShySkill
    @ShySkill 2 года назад +2

    I was making a game with pygame and it wouldnt find the module, Modulenotfound error, so I disabled an extension I had (code runner) which was causing the issue and then it worked 👍

    • @philparisi_
      @philparisi_  2 года назад +1

      Interesting alternative solution, ShySkill! Thank you for posting this in case others have this problem in the future. Have a great week!

  • @icarorezende6214
    @icarorezende6214 3 года назад +2

    Thank you so much man, solved my problem trying to import the module 'control'

    • @philparisi_
      @philparisi_  3 года назад +1

      Awesome Icaro! Good luck with all your future programming and happy new year!

  • @snipzmattio5887
    @snipzmattio5887 3 года назад +3

    Thanks man! Really helped me out.

    • @philparisi_
      @philparisi_  3 года назад +1

      Sure thing Snipz Mattio! Always great to hear from viewers - thank you for commenting.

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

    I'm having an issue.
    I'm trying to install torch and torchvision(trying to get ,,Stable Diffusion" working on my device) and it's returning me Error code 1 :
    "python.exe: No module named pip"
    That is very weird considering i have executed: "py -m ensurepip --upgrade "
    on my command prompt after turning off anti-virus and can clearly see it in my scripts for my Python version (im on 3.9.0)
    I have set it as PATH so i have no possible idea why it still doesn't recognize it. Help!

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

      Hi ZEO, dang you are in it deep! Been there haha.
      Ok, do the steps in this 3min video (and replace numpy with your package) and let me know what you get. Back up and don‘t do anything with IDE‘s if you haven‘t already.
      ruclips.net/video/vIR6utJ7S4U/видео.html
      Let me know what the results are from that video!

  • @felix1504
    @felix1504 3 года назад

    nice Video Phil, keep up the great work

  • @anjansiddharth5687
    @anjansiddharth5687 3 года назад +1

    thanks a lot, i checked lots n lots of video but ur video helped me solving the issue

    • @philparisi_
      @philparisi_  3 года назад

      Anjansiddharth, thank you for the kind words! Glad to issue is fixed - happy coding!

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

    Might be important to note the second method, using cmd, doesn't actually work with a normal windows computer.

  • @Wilson._.Diaz._.
    @Wilson._.Diaz._. 3 года назад +1

    Hi.. i give you one more option. I had all this things right including all path. But i had more than one vertion of python. So the simple solution was eliminate the other vertions and keep the last one. Then VS Code get confused and ask me where is my interpreter, so i select the last vertion (and the onlyone i keep).

    • @philparisi_
      @philparisi_  3 года назад +1

      Wilson, thank you for this! Great insight.
      Instead of getting rid of the other version (while easiest), you could use an IDE such as PyCharm and select the interpreter of whichever version you want to use. That creates a 'virtual environment' that only runs using that one interpreter.

  • @SuperMihalaras
    @SuperMihalaras 3 года назад +2

    Although i installed the modules that i want, my VS code keeps not recognizing the modules i import! I dont know what else i can do.. I would appreciate a lot some help

    • @philparisi_
      @philparisi_  3 года назад

      Hi Mihalaras, interesting error. First, open Python IDLE and try running the import command. If that command is successful, then you know the problem is strictly within VS code (in which case, try creating a new project or file and start fresh).
      If the import command fails in IDLE then you know it is an issue with the package not being on your computer, try pip3 install again!

    • @SuperMihalaras
      @SuperMihalaras 3 года назад +1

      @@philparisi_ Thank you very much for your answer and the time you took to solve my problem. I really appreciate it. After trying so many solutions i managed to get it work by creating and setting up the virual environment that i want on conda prompt and not from inside the vs code's terminal. After this vs code seemed to work fine! Thank you again and keep up the great work! :D

    • @philparisi_
      @philparisi_  3 года назад +1

      @@SuperMihalaras Awesome! Great troubleshooting skills. Good luck with your project :)

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

    Running from the CMD, I get "Defaulting to user installation because normal site-packages is not writeable" Driving me nuts

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

      Hi there, check this out as it should help bobbyhadz.com/blog/python-defaulting-to-user-installation-because-normal-site-packages-is-not-writable

  • @aleksanderklimczyk7879
    @aleksanderklimczyk7879 3 года назад +2

    Bro please help... so I need to import numpy, when I do pip3 install numpy, I get a message saying 'Requirement already satisfied:', but when I try to import numpy in a python file, I still get an error saying numpy module not found.

    • @philparisi_
      @philparisi_  3 года назад +1

      Hi Aleksander, ok let's try a few things (I also recommended peeking at some of the other comment threads).
      Open up IDLE and 'import numpy'. Does that succeed? If so your problem is with the IDE.
      Also, what IDE are you using? If it's PyCharm, start a new project and check the box in the popup window that says to import all packages.
      Also try creating a python script with a simple .txt file saved as 'testing.py'. Add a line that says 'import numpy' at the top and try running that testing.py file form your command line!

    • @aleksanderklimczyk7879
      @aleksanderklimczyk7879 3 года назад +1

      @@philparisi_ Hello, thanks for the help, however, I fixed my problem about an hour or two after I asked my question. The answer to my problem came to me via the same way I usually get my answers; A random Indian dude on RUclips lol. Incase anyone has the same problem as me, watch this video: ruclips.net/video/ZIXYJU6AZvE/видео.html

  • @ven._._.
    @ven._._. 2 года назад +1

    it works on vs and others programs but when i enter it on the windows terminal it says that the module cant be found?

    • @philparisi_
      @philparisi_  2 года назад

      Hey there, when you do the windows terminal be sure to run two commands:
      python
      import package

  • @adonischhetri8372
    @adonischhetri8372 3 года назад +1

    Quick & Easy. Thanks Man !!

    • @philparisi_
      @philparisi_  3 года назад

      You bet! Have a great week Adonis.

  • @rajeshn8751
    @rajeshn8751 2 года назад +1

    Mate getting No Module named requests, though I have installed it multiple times using ConEmu, and through Pycharm (where I can clearly see it) uninstalled all Pycharm, python and all the jing-bangs... nothing seem to work... any help mate.... also want to know when I use ConEmu it always points to C:]Python35 while I have installed 3.10. How do I change the path both in Pycharm and ConEmu to point to the right installation directory... sorry if this is a stupid question, but just a beginner question mate... great video by the way... I learn to install packages through Pycharm....

    • @philparisi_
      @philparisi_  2 года назад

      Hey Rajesh, sorry you’re still having troubles. Ive never used ConEmu before, but in general I like to work back to the basics to get things working and then use more advanced software after.
      The pointing to the wrong Python version is a real problem you need to fix. Idk about ConEmu, but in Pycharm you can select the Python version when you start a new project as well as when you are editing a configuration to run a specific file.
      Try watching this video and get the sample.py working ruclips.net/video/nd5IbIPTXxA/видео.html&feature=share&EKLEiJECCKjOmKnC5IiRIQ
      This gives you a sanity check that you can in fact run a script successfully with ‘import module’. Then, try to replicate that video with the package you are using. Then, get it working in Pycharm. Then, go into ConEmu.

  • @elektromech
    @elektromech 2 года назад +1

    best video i've seen on youtube

    • @philparisi_
      @philparisi_  2 года назад

      my heart ❣ thank you for the kind words Ercan! Glad I could help.

    • @elektromech
      @elektromech 2 года назад +1

      @@philparisi_ I solved the problem that I couldn't solve for 1 week thanks to your video.

  • @shamimreza4885
    @shamimreza4885 3 года назад +2

    Just awesome! You saved me, bro! hugs

    • @philparisi_
      @philparisi_  3 года назад

      Sending hugs back your way Shamim! #CodersHelpingCoders

  • @brittaneyanderson8103
    @brittaneyanderson8103 2 года назад +2

    Am I the only one who tried all these things and never got it working? Great video though

    • @philparisi_
      @philparisi_  2 года назад

      Hi Brittaney! So sorry it's still giving you grief haha, such a pain! I'd suggest checking out the other comments on this video, I've done a ton of work with people to get this fixed and your issues likely still falls under one of their issues!

  • @user-he5pg7up1o
    @user-he5pg7up1o 3 года назад +1

    The letters are too small to see well.
    This video made me look like a pug.
    Can you give me a cosmetic surgery fee?
    HAHAHA !!

    • @philparisi_
      @philparisi_  3 года назад

      Hahaha sorry the text is small! I'll increase the size in future videos, but I don't know if I can pay for the surgery haha ;)

  • @piyushharsh01
    @piyushharsh01 2 года назад +1

    ModuleNotFoundError: No module named 'urllib.parse'; 'urllib' is not a package
    I am encountering this problem, I have set the environment variable and have installed urllib3 library, but still same error. Could please help?

    • @philparisi_
      @philparisi_  2 года назад

      Hi Piyush, what lines of code are you running that prompt this error?

  • @nessajordyn
    @nessajordyn 2 года назад +1

    Hey, this didn't work for me. I need help. ): I'm trying to do "from graphics import * did the first step and nothing. I missed only one of my CS labs for school and now I'm all sorts of behind ahh

    • @philparisi_
      @philparisi_  2 года назад

      Hi Manessa! Happy to help.
      graphics.py is a special case! It is not a downloadable package using pip nor is part of the python base installation. Instead, download this file: mcsp.wartburg.edu/zelle/python/graphics.py (or copy the contents into a file called graphics.py).
      Put that graphics.py file in the SAME FOLDER as your current_script.py. Then, your 'from graphics import *' should work in your current_script.py.
      Let me know if that works for you!

  • @xxDrLecter77
    @xxDrLecter77 3 года назад +1

    THANKSSSSSSSSSSSSSSSSSSSSSSS FIRST SOLUTION WORKED FOR ME!!!!!

    • @philparisi_
      @philparisi_  3 года назад

      SWEEEEEEEEEEEEEEEEEEEEEET DrLector!

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

    Thanks for helping out, Phil!

  • @Richard-zb3sy
    @Richard-zb3sy 2 года назад +1

    Mine still gives ModuleNotFoundError when running from CMD, even though it works perfect in pycharm, followed all steps in the video... I'm stuck!

    • @philparisi_
      @philparisi_  2 года назад

      Hi Richard, that's odd to hear it work in pycharm but not in cmd...
      If you would...
      open cmd
      run pip3 install package_name
      ^ does that give you the error?
      then run
      python
      import package_name
      ^ or does that give you the error?

  • @RustyTube
    @RustyTube 2 года назад +1

    That is fine and dandy if pip knows about the module. But if you are a programmer who created your own module, pip is lost even if you start it from the directory where the module dll is located. :(

    • @philparisi_
      @philparisi_  2 года назад

      Great point Rusty!
      If you're at the stage of making your own modules... I'd have thought pip would be the least of your worries! ;) You'd probably need to custom install (maybe not even use pip?). Unsure myself, have never made my own python module. Best of luck!

    • @RustyTube
      @RustyTube 2 года назад +1

      @@philparisi_ Thanks. I wrote a library of video and image processing routines in C and am trying to make it possible to use from Python.

    • @philparisi_
      @philparisi_  2 года назад +1

      @@RustyTube dang that's incredible Rusty! Sorry I can't help you further with getting pip to recognize it. Perhaps there's a developer community you can tap into somewhere and then can support!

    • @RustyTube
      @RustyTube 2 года назад +1

      @@philparisi_ Thanks. I’m sure I’ll figure it out eventually. :)

    • @RustyTube
      @RustyTube 2 года назад +1

      @@philparisi_ I found the answer, at least on how to run it locally on my Windows machine. I used SWIG to create a C interface to my library. The library is called koliba, and swig created two files: _koliba.c and koliba.py. I compiled the C file to a DLL, but Python was complaining it could not find it. Right now I found the answer: Python was looking for _koliba.pyd, not _koliba.dll. So all I had to do was rename the file, and now it all works.
      To actually distribute it will be more involved, but at least I can test it now.

  • @Arvind__-wu6zv
    @Arvind__-wu6zv 3 года назад +2

    I'm facing an error importing functions from another python program even when they are in same folder.
    could you suggest a solution

    • @philparisi_
      @philparisi_  3 года назад

      Hi Arvind, I'll help as much as I can! Are you importing function from another package or calling another .py file? I'm assuming you are have something like 'from import ' ? What is the exact error message?
      Have you following all the steps in this video for installing the ? Are you able to run import without error?

    • @Arvind__-wu6zv
      @Arvind__-wu6zv 3 года назад +1

      @@philparisi_ I'm actually importing from another .py file

    • @philparisi_
      @philparisi_  3 года назад +1

      @@Arvind__-wu6zv ahh ok. Not my area of expertise, but I did find this which might help: stackoverflow.com/questions/2349991/how-to-import-other-python-files

  • @crazygreenyt849
    @crazygreenyt849 3 года назад +1

    omg the first one worked for me THANKS!

    • @philparisi_
      @philparisi_  3 года назад

      Woohoo!! Great to hear it CrazyGreenYT! Have a great weekend!

  • @UmmairRadi
    @UmmairRadi 3 года назад +1

    I am trying to run web3 from a virtual environment. everything is installed but i keep getting this error "ModuleNotFoundError: No module named 'web3'". it's working fine if ran from the terminal using "Pipenv run python app.py" but can't run it from VS code. The interpreter is set to env so no problem with that, any fix?

    • @philparisi_
      @philparisi_  3 года назад

      Hi Ummair, it's hard for me to point at the error in your case as I haven't tried this out in VScode before. Is the error affecting only one package and not the others? Try installing and importing a new package and see if that also throws an error. Also try uninstalling and reinstalling the package, and make sure VS code is pointing to the right environment.
      Best of luck - if you solve it please post here to help others with a similar issue!

  • @Spyrit_Plays
    @Spyrit_Plays 2 года назад +1

    Bro thank you so much. I literally didn't know what to do.

    • @philparisi_
      @philparisi_  2 года назад +1

      WOOP WOOP sweeet glad it worked for ya Spyrit FN! Have a great day!

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

    Hi , i am receiving this error for cumulusci ..but the thing is i already have installed cumulusci still receiving this no module name cumulusci
    Anyone can help?

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

      Hey there Shiba, hmm this is odd to hear!!
      I opened a terminal, ran
      - pip3 install cumulusci
      - python
      - import cumulusci
      And it worked!
      To me, this means you‘re using an IDE or virtual environment that doesn‘t have the package installed (even though the package is installed on your machine). Try checking what packages are installed in your IDE!

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

    from intertoos import islice
    output:
    from itertools import islice ModuleNotFoundError: No module named 'itertools'
    what should i do

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

      Open a command terminal, and „import itertools“
      Then in your script try just, „import itertools“.
      If that works, try „from itertools import islice“

  • @dhanushbhargav7865
    @dhanushbhargav7865 2 года назад +1

    “Cryptography fernet module not found”
    Tried installing pip3 install cryptography
    But then, no use can you help me?

    • @philparisi_
      @philparisi_  2 года назад

      Hi dhanush, open up a command line and type: pip3 install cryptography
      Does that work? I was able to run it fine on my system.
      Also, are you using an IDE like PyCharm or something else?

  • @shreyamkumar7210
    @shreyamkumar7210 3 года назад +2

    I have another problem i have installed the module but also it gives
    Me error no module name.....
    And i am using vs code please answer me what to do

    • @philparisi_
      @philparisi_  3 года назад

      Hi Deathstroke - try opening up IDLE and running the import command. If that works, then it's your virtual environment within VS code that's tripping you up on. In that case, try creating a new project and be sure to import 'all system packages'.
      Sometimes, the existing projects won't be able to find new packages the we pip install.
      Let me know if that helps!

  • @andrewcomplainer
    @andrewcomplainer 2 года назад +1

    It doesnt work for me. Still got the same error. And yes instead of 'plotly' i used my package

    • @philparisi_
      @philparisi_  2 года назад

      Hi Andrew, is the package on the machine? In a terminal, try typing:
      python
      import package
      If that doesn’t work,
      pip install package
      OR
      pip3 install package

  • @GabiPlastina
    @GabiPlastina 2 года назад +1

    ERROR: Could not find a version that satisfies the requirement familia (from versions: none)
    ERROR: No matching distribution found for familia
    alguien podria ayudarme? Me da ese error

    • @philparisi_
      @philparisi_  2 года назад

      Buenos diss Gabi, it sounds like there is a problem with the package you installed. Look up the package‘s documentation for how to properly install and import into a script!

  • @geniusprogramming
    @geniusprogramming 2 года назад +1

    thank you so much man you came like an angel in my life......

    • @philparisi_
      @philparisi_  2 года назад +2

      Sheikh, this joins the top 10 best comments on my videos -- thank you for the love and I'm sending it right back to you!!

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

    when i typed pip3 install freegames it got installed but when i run the code i still get an error

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

      Check to see if you can import the package in a terminal / command window. If that is successful, then the package is installed correctly AND it’s the IDE you’re using that’s the problem. Be sure to install the package in the IDE as well, or ensure the IDE is inheriting all packages on your system.

  • @sicness0
    @sicness0 2 года назад +1

    Thanks, but it didn't work for me. It still says "no module named users"

    • @philparisi_
      @philparisi_  2 года назад

      Try opening a terminal and typing:
      python
      import
      If that works then the package is installed correctly (look into your Pycharm / IDE for fixing).

    • @sicness0
      @sicness0 2 года назад +1

      @@philparisi_ ok thanks. I’ll try

  • @hhelpinghands-dotcom2194
    @hhelpinghands-dotcom2194 Год назад +1

    hey sir I'm using python3.9 and I have installed colorama successfully, i can see it through pip list, but when i ran a code, which is actually importing colorama, it says, no module named colorama. After which i tried again to install it but it says the requirement already satisfied, but the no module error persists. help me please.

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

      Hi there, try opening a command line, typing 'python', then 'import colorama' (or whatever the package name is). If that works, then you have the package. If it does not work, the issue is with the IDE you are using.
      Follow this but replace 'sklearn' with your package name: ruclips.net/video/O3QWgpkR23s/видео.html

    • @hhelpinghands-dotcom2194
      @hhelpinghands-dotcom2194 Год назад

      @@philparisi_ all the packages are installed and all are showing in the list after 'pip list' command! But this the error is coming! And I tried to run my code from the command prompt too, still the issue is there!
      Error: no module name colorama
      After trying with 'pip3 install colorama'
      It appears 'the requirement already satisfied'
      And the again, the error comes 'no module named colorama'
      Don't know what to do! 😢
      By the, I am trying to run the hashlips, bulk NFTs uploader to opensea python script

  • @QaimMehdiRizvi
    @QaimMehdiRizvi 3 года назад +2

    Thank you so much for such a great help.

    • @philparisi_
      @philparisi_  3 года назад

      Have a great weekend, Dr. Qaim Mehdi!

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

    Getting error " ModuleNotFoundError: No module named 'insightface", i have already installed it as i am getting messaged "Requirement already satisfied: six>=1.5 in c:\users\sujeet\appdata\local\programs\python\python311\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface) (1.16.0)". i am a newbie to python please help. getting error in stable diffusion installed on other drive .

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

      Hi there, it sounds like the package is installed on your system, which is good! If you are using an IDE or virtual environment then you also need to ‘install’ the package there as well.
      Can you tell me more about your setup?

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

      @@philparisi_ i think i got the issue but have to test it as i am away right now. The problem is python is installed twice. One is from python website and another that is in stable diffusion folder itself. I am installing the module and it is getting installed in other python directory not in stable diffusion one.. Should i uninstall the python and keep the stable diffusion's python? Or any other like adding path.. I want to keep it simple.

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

      @@sujeet2555 Hmmm I haven't worked directly with stable diffusion, but I imagine they have some sort of virtual environment or folder where you keep your python packages organized. Look deeper into how to install packages for stable diffusion. It would be sensible that you can have a version of python working for stable diffusion and have an alternative version working on your system.

  • @oksowhat
    @oksowhat 2 года назад +1

    hi there, i had this roblem of module not found after converting it into a .exe , the pop up gives this error that module not found

    • @philparisi_
      @philparisi_  2 года назад

      Hello Tree, what exactly did you convert to an .exe? Your python script?

  • @juanpablohorn6642
    @juanpablohorn6642 2 года назад +1

    I'm not sure why, but none of the methods showed on your video worked for me. I'mnot sure if its the module I'm trying to import. In my case, I'm importing openpyxl. What else could be wrong?

    • @philparisi_
      @philparisi_  2 года назад

      Hi Juan, what is the exact error you are getting? The import error one?
      Try opening up IDLE and running import openpyxl. If that works then the package is on your system but not in whatever IDE you are using.

    • @juanpablohorn6642
      @juanpablohorn6642 2 года назад

      @@philparisi_ Hello Phils! This is my code. It is a very simple one:
      import openpyxl
      book = openpyxl.load_workbook(r'C:\Users\Juan Pablo Horn\Dropbox\Excel Macro Mastery\How to Replace VBA with Python(Step-By-Step Tutorial)\marks.xlsx')
      sheet=book["Sheet1"]
      print(sheet["B3"].value)
      sheet("G2")="Hello there"
      book.save(r'C:\Users\Juan Pablo Horn\Dropbox\Excel Macro Mastery\How to Replace VBA with Python(Step-By-Step Tutorial)\marks.xlsx')
      And this is what the output windows says:
      [Running] python -u "c:\Users\Juan Pablo Horn\Dropbox\Excel Macro Mastery\How to Replace VBA with Python(Step-By-Step Tutorial)\First.py"
      File "c:\Users\Juan Pablo Horn\Dropbox\Excel Macro Mastery\How to Replace VBA with Python(Step-By-Step Tutorial)\First.py", line 15
      sheet("G2")="Hello there"
      ^
      SyntaxError: cannot assign to function call
      [Done] exited with code=1 in 0.088 seconds
      Do you know what might be wrong?

  • @NehmuloseDoomish
    @NehmuloseDoomish 2 года назад +1

    Thank you, my friend!

    • @philparisi_
      @philparisi_  2 года назад +1

      My pleasure, Renato! Have a great day!

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

    No matching distribution found for configparser-using kali trying to install configparser if you cound know how to remove older python versions without breaking my system i will appreciate i have tried but it breaks my system and i have to reinstall

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

      Hey Wilbourne, sounds like you‘re in a pickle. Not sure what you‘ve tried yet… but can you keep that older of python on there? Then you can install a newer version on top. If you are using PyCharm, you can choose which python version/interpreter you want to use for a given project.

  • @juansanchez7191
    @juansanchez7191 2 года назад +1

    Hello, I've installed tkcalendar with pip3, even pip, but when I call to "from tkcalendar import calendar" VScode shows me an error message right in the "tkcalendar"

    • @philparisi_
      @philparisi_  2 года назад +1

      Hi Juan,
      Be sure to capitalize the C in Calendar!!
      That should do it :)
      I did the same thing on my system to replicate the error.
      Opened up command line:
      Installed with 'pip3 install tkcalendar'
      'python'
      'import tkcalendar' (worked!)
      'from tkcalendar import calendar' (did not work!)
      'from tkcalendar import Calendar' (worked!)
      Thank you for supporting the channel!
      -Phil

    • @juansanchez7191
      @juansanchez7191 2 года назад +1

      @@philparisi_ thanks for answering, I just fixed it haha, I use the Ctrl+shift+p command and selected the opt Python Refactor: sort imports. For some reason it seems Vscode wasn't indexing right the installed package.

    • @philparisi_
      @philparisi_  2 года назад

      @@juansanchez7191 well done! Happy you figured it out. Have a great weekend!

  • @thehoodshooter1985
    @thehoodshooter1985 3 года назад +1

    Done all them steps still not working could you help me please my paths are in the right place but it's still not finding the win32api

    • @philparisi_
      @philparisi_  3 года назад

      Hi Fruadstars, sorry to keep you waiting!
      Can you post the exact error message? Also, are you running 32bit or 64bit? Did you download the proper python (the win32api may have something to do with bit incompatibility). What OS are you running?

  • @haxy736
    @haxy736 3 года назад +2

    YOU'RE THE BEST OMG THANKS

    • @philparisi_
      @philparisi_  3 года назад

      NO YOU'RE THE BEST - HAVE A GREAT WEEK!

  • @chucke6628
    @chucke6628 3 года назад +1

    No module named 'Adafruit_PCA9685
    Your pip3 worked first time, as is well, thanks!

    • @philparisi_
      @philparisi_  3 года назад

      Awesome Chucke! thanks for the comment. Have a great day!

  • @apoorvthedude
    @apoorvthedude 3 года назад +1

    Hi,I have installed it,but in my VScode it is showing Importe error no module name pywhatkit.I opened python idle,wrote import pywhatkit error showing there to.Help me

    • @apoorvthedude
      @apoorvthedude 3 года назад

      After writing pywhatkit --version,showing pywhatkit: command not found.

    • @philparisi_
      @philparisi_  3 года назад

      Hey Apoorv, if you are getting the error in both VS code and in IDLE then the package has not been installed yet on your machine at all!
      Try running: pip3 install pywhatkit
      in a terminal!

    • @apoorvthedude
      @apoorvthedude 3 года назад

      @@philparisi_ Hi Phils,when i installed pywhatkit using terminal,it downloaded but after checking its version by pywhatkit --version.Command not found is showing.
      Plus in vscode the code is running if i type python3 file_name.py.
      I am using ubuntu

    • @apoorvthedude
      @apoorvthedude 3 года назад

      Why in vscode by clicking on run code button code is not running,plus why command not found is showing after checking its version.
      I typed in terminal:
      pip3 install pywhatkit to download it.

    • @philparisi_
      @philparisi_  3 года назад

      @@apoorvthedude I am losing track a bit of what the error is, but to check your versions of installed python packages run:
      pip freeze
      or
      pip3 freeze

  • @_manana
    @_manana 3 года назад +1

    hello I fucked up my path because I forgot to add %PATH% on the command any way to fix this?

  • @maisylane8810
    @maisylane8810 3 года назад +1

    hey, im literally so stuck. i have my python installed but im running in a powershell and not the command prompt. in the powershell i put;; pip 3 install discord, and it says that i have installed it. but, when i go to run my code in python it says that it cant find discord. but my command prompt wont download pip 3!! please help

    • @philparisi_
      @philparisi_  3 года назад

      Hi Maisy! Ugh, I remember being there when I started in Python.
      You are using powershell. Any particular reason?
      Python seems to have the package called 'discord', that's good. The issue you are facing may be because the package is installed on your system and not in your virtual environment. Here is a video I made on virtual environments which will help: ruclips.net/video/zCO3KxV2zPI/видео.html
      This begs the question: how are you running scripts? Are you using an IDE or simply executing line-by-line in IDLE? try running 'import discord' in IDLE, or putting it as the first line of a script if you are using an IDE. Does 'import discord' throw an error?
      Regarding the pip3 download, what version of python are you running? If you were able to run pip3 install discord, then pip3 is likely already on your computer. Here is a python download tutorial which may help as well: ruclips.net/video/wEu-OCpy-9o/видео.html
      I hope some of this can help! Please let me know.

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

    thanks for the video, but i still found some error. i already successfully pip3 install pyfirmata, but it still appear No module named pyfirmata, help me please (im using spyder IDE on windows)

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

      Hmm yes a number of people have had the same issue with Spyder. I’d suggest looking into how Spyder brings in packages on your computer and how they recommend importing / installing packages. They’re a unique software that tends to give some trouble.

  • @redeye987
    @redeye987 3 года назад +1

    YOU ARE BREATHTAKING

    • @philparisi_
      @philparisi_  3 года назад

      Thank you! I'm sure you are a gem as well.