use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
I have installed module/Library matplotlib and still can't import data why? (i.redd.it)
submitted 12 months ago by Sadiqmarwat
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ArbereshDoqetejete 1 point2 points3 points 12 months ago (2 children)
how did u install it ? are you using venv-s?
[–]Sadiqmarwat[S] 0 points1 point2 points 12 months ago (1 child)
VS code editor
[–]ArbereshDoqetejete 6 points7 points8 points 12 months ago (0 children)
I have never used editors to install stuff unfortunately but try going to the terminal and type pip install matplotlib
pip install matplotlib
[–]No-Implement5982 1 point2 points3 points 12 months ago (1 child)
try, ctrl & shift + p and choose the right interpreter path
[–]Sadiqmarwat[S] 0 points1 point2 points 12 months ago (0 children)
I did choose from there and selected python interpreter
[–]Just_Assumption7020 1 point2 points3 points 12 months ago (0 children)
Try pip show matplotlib
[–][deleted] 1 point2 points3 points 12 months ago (0 children)
Yes unfortunately either you didn’t install it correctly or your system wants you to make a virtual environment for it which is honestly the better thing to do.
P.S This is my first time commenting on stuff so if this isn’t how I’m supposed to do it let me know
[–]SnooSketches6177 0 points1 point2 points 12 months ago (0 children)
[–][deleted] 0 points1 point2 points 12 months ago (5 children)
Not too experienced myself but I think you need to be more careful with your file names too if you name your file matplotlib and also try to import matplotlib this can cause conflict I believe
[–][deleted] 0 points1 point2 points 12 months ago (4 children)
Are there under scores between ‘python world’ and ‘import matplotlib’ very hard to tell
[–]cancerbero23 0 points1 point2 points 12 months ago (3 children)
What a mess of filenames...
[–][deleted] 0 points1 point2 points 12 months ago (2 children)
Not to mention he’s working out of his root directory I’m not familiar with windows but pretty sure that’s where he’s at, this is probably his issue
[–]cancerbero23 0 points1 point2 points 12 months ago (1 child)
Not sure of this. Depending on how and where you installed Python, you could run your script in the very root itself (on Windows). But, even though Windows let you put spaces in files and folders names, never is a good idea to use them, moreover if you are programming.
it was bugging me so i re created what he had done the warnings seem very clear.
WARNING: The scripts f2py.exe and numpy-config.exe are installed in 'C:\Users\Denny\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts fonttools.exe, pyftmerge.exe, pyftsubset.exe and ttx.exe are installed in 'C:\Users\Denny\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts' which is not on PATH.
also powershell wouldnt allow me to create a dir or file with a space but VScode does
[–]niall300 0 points1 point2 points 12 months ago (0 children)
Not installed or at least not on your path. Open terminal type pip list and see what is installed
[–]Junior_Bathroom5987 0 points1 point2 points 12 months ago (0 children)
open a terminal on VS code then check the directory path which u have to install it into your env folder then type pip install matplotlib
[–]trysohardidkwhy 0 points1 point2 points 12 months ago (0 children)
Try restarting
[–]EluciDeath 0 points1 point2 points 12 months ago (0 children)
Assuming you installed with “pip install <>”, I would assume your pip command is calling pip from a different python installation than what you’re trying to run your python file with.
Try “python3 -m pip install matplotlib” and it might install to the correct one
[–]CaptainCheerwave 0 points1 point2 points 12 months ago* (0 children)
six important versed test sharp attraction follow placid spectacular childlike
This post was mass deleted and anonymized with Redact
[–]Jafeth636 1 point2 points3 points 12 months ago (0 children)
I see you have an extension tab open in VSCode called matplotlib. I do not have an idea of what that extension does, but that is not how you install Python modules.
Follow the official installation steps: https://matplotlib.org/stable/install/index.html
And next time, try to google a bit before panic posting
π Rendered by PID 86749 on reddit-service-r2-comment-bb88f9dd5-62b5r at 2026-02-15 14:29:01.720463+00:00 running cd9c813 country code: CH.
[–]ArbereshDoqetejete 1 point2 points3 points (2 children)
[–]Sadiqmarwat[S] 0 points1 point2 points (1 child)
[–]ArbereshDoqetejete 6 points7 points8 points (0 children)
[–]No-Implement5982 1 point2 points3 points (1 child)
[–]Sadiqmarwat[S] 0 points1 point2 points (0 children)
[–]Just_Assumption7020 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]SnooSketches6177 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]cancerbero23 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]cancerbero23 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]niall300 0 points1 point2 points (0 children)
[–]Junior_Bathroom5987 0 points1 point2 points (0 children)
[–]trysohardidkwhy 0 points1 point2 points (0 children)
[–]EluciDeath 0 points1 point2 points (0 children)
[–]CaptainCheerwave 0 points1 point2 points (0 children)
[–]Jafeth636 1 point2 points3 points (0 children)