🐍 Fix ModuleNotFoundError No Module Named MatPlotLib / Python Import Error / If Installed If Exists

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 2024
  • Sign Up 👻👻👉 semicolon.dev/TH-cam
    (We're free online community, meet other makers!)
    #python #error #fix #fixed #howto
    Hey guys in this tutorial let's try to fix ModuleNotFoundError No module named matplotlib error in cases where the module is already installed (and it already exists.)
    00:00 import matplotlib (Running a simple Python program)
    00:10 ModuleNotFoundError No module named 'matplotlib ' import error
    00:35 Still getting ModuleNotFoundError even if already installed, even if module exists
    00:50 pip, pip2, pip3 and pip install matplotlib command
    01:07 Differences between Python2 and Python3 launchers (or py)
    01:20 Check version of python / check version of python3
    01:35 Check version of pip pip2 and pip3
    02:03 Creating an alias from pip to pip3
    02:23 Using pip list, pip2 list and pip3 list to find out which module is installed by which python package installer
    03:01 Help if you're still getting ModuleNotFoundError No module named matplotlib after trying to fix it with this video

ความคิดเห็น • 21

  • @bloomyourpotentialnwo
    @bloomyourpotentialnwo ปีที่แล้ว +3

    "'alias' is not recognized as an internal or external command, operable program or batch file."

  • @davar6535
    @davar6535 ปีที่แล้ว +1

    hello, i have "Could not import Matplotlib backends. Probarbly due to missing Qt." error in PyCharm. how do i fix this?
    to specify the problem little bit more, When i run jupyter notebook from anaconda3 base it works fine, so actually i get can arround my problem. But when i try to use PyCharm with new environment this problem occurs. So how to fix this problem for new environment?

  • @emmywraps7165
    @emmywraps7165 ปีที่แล้ว +4

    i don't understand why but it says no module named matplotlib, i then did pip3 list and matplot lib was there i then thought "maybe im using python2" so i checked my version and sure enough it was 3.10 so genuinely don't understand the issue because when i check the terminal it says its there and just in case i tried pip3 install and it said requirments already fufilled

  • @gluvydh
    @gluvydh ปีที่แล้ว +1

    'python3' is not recognized as an internal or external command,
    operable program or batch file. ?

  • @LifeOfSim_07
    @LifeOfSim_07 ปีที่แล้ว

    i have install opencv-python using pip install command .. it is also showing installed in pip list...but when i am using python IDLE.. import cv2...it is showing error no module found ...named cv2....please suggest the solution

    • @ghosttogether
      @ghosttogether  ปีที่แล้ว

      idle is also configured to use another environment

    • @LifeOfSim_07
      @LifeOfSim_07 ปีที่แล้ว

      @@ghosttogether sorry i didn't get it

  • @mowmitaahmed
    @mowmitaahmed 3 หลายเดือนก่อน

    Thanks!! It's worked for me!

  • @feynwoman7788
    @feynwoman7788 ปีที่แล้ว +1

    I hate matplotlib, I got this error even on Linux

  • @MartinMF88
    @MartinMF88 ปีที่แล้ว

    Thanks for your help

  • @Megha-Chakraborty
    @Megha-Chakraborty ปีที่แล้ว

    Hii, I'm facing the same problem with matplotlib. Even though it's installed it still shows ModuleNotFoundError. I also uninstalled it and deleted it many times but still facing the same issue. Also referred to many videos but didn't come out with a solution. I tried this method too but it's written that 'alias' is not recognized as an internal or external command. Please help me out. I will be grateful.

    • @ghosttogether
      @ghosttogether  ปีที่แล้ว +1

      Run:
      pip list
      pip2 list
      pip3 list
      under which do you see matplotlib?
      that's the environment where it's installed ... you're trying to run it with py or python/python3 command from another environment
      or you used relative path when importing matplotlib (switch to absolute)

    • @Megha-Chakraborty
      @Megha-Chakraborty ปีที่แล้ว

      @@ghosttogether Thankyou for replying :) Can you please tell exactly that how can I fix it?

    • @ghosttogether
      @ghosttogether  ปีที่แล้ว +1

      @@Megha-Chakraborty Are you on windows or mac

    • @Megha-Chakraborty
      @Megha-Chakraborty ปีที่แล้ว

      @@ghosttogether Windows

    • @ghosttogether
      @ghosttogether  ปีที่แล้ว +1

      @@Megha-Chakraborty How many different Pythons do you have installed? And did you add path to correct python in PATH environment variables?

  • @sreekanthreddy9746
    @sreekanthreddy9746 ปีที่แล้ว

    from matplotlib.compat.subprocess import Popen
    ModuleNotFoundError: No module named 'matplotlib.compat.subprocess'
    please help with the above ? matplotlib already installed