Python Forum
ModulNotFoundError matplotlib
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ModulNotFoundError matplotlib
#10
(Apr-26-2024, 05:38 PM)snippsat Wrote: You have two Python versions on your Pc.
This on mean that you have installed a Microsoft python 3.12 app version :
Requirement already satisfied: matplotlib in c:\users\richb\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages (3.8.4)

Your first error message mean that you also have version from Python.org Python 3.12.2
  File "C:\Users\richb\AppData\Local\Programs\Python\Python312\Lib\idlelib\scatter_plot.py", line 1, in <module>
    import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib
No problem to have several version Python,i have lot more.
Just that have you to choose right Python interpreter from Editor/Ide you run code from.
If this confusing for you,i would go with version from Python.org and uninstall the Microsoft python 3.1 2 app version.

Yeah, that was it, thanks so much. Deleted both versions, reinstalled Python from the Python.org, reinstalled pip and matplotlib.
Reply


Messages In This Thread
ModulNotFoundError matplotlib - by WicardBohnam - Apr-26-2024, 12:05 AM
RE: ModulNotFoundError matplotlib - by deanhystad - Apr-26-2024, 01:14 AM
RE: ModulNotFoundError matplotlib - by WicardBohnam - Apr-26-2024, 04:16 PM
RE: ModulNotFoundError matplotlib - by deanhystad - Apr-26-2024, 04:36 PM
RE: ModulNotFoundError matplotlib - by WicardBohnam - Apr-26-2024, 04:49 PM
RE: ModulNotFoundError matplotlib - by deanhystad - Apr-26-2024, 04:59 PM
RE: ModulNotFoundError matplotlib - by WicardBohnam - Apr-26-2024, 05:13 PM
RE: ModulNotFoundError matplotlib - by snippsat - Apr-26-2024, 05:07 PM
RE: ModulNotFoundError matplotlib - by snippsat - Apr-26-2024, 05:38 PM
RE: ModulNotFoundError matplotlib - by WicardBohnam - Apr-27-2024, 01:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Matplotlib: How do I convert Dates from Excel to use in Matplotlib JaneTan 1 3,306 Mar-11-2021, 10:52 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020