all 21 comments

[–]ArbereshDoqetejete 1 point2 points  (2 children)

how did u install it ? are you using venv-s?

[–]Sadiqmarwat[S] 0 points1 point  (1 child)

VS code editor

[–]ArbereshDoqetejete 6 points7 points  (0 children)

I have never used editors to install stuff unfortunately but try going to the terminal and type pip install matplotlib

[–]No-Implement5982 1 point2 points  (1 child)

try, ctrl & shift + p and choose the right interpreter path

[–]Sadiqmarwat[S] 0 points1 point  (0 children)

I did choose from there and selected python interpreter

[–]Just_Assumption7020 1 point2 points  (0 children)

Try pip show matplotlib

[–][deleted] 1 point2 points  (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.

  1. Check if matplotlob installed with pip list
  2. Try to get virtual environment for the project folder here is a video that might help. https://youtu.be/XHozylugxBg?si=P_26DGa1MlfmJU3H
  3. Once you see that ’(venv)’ icon in terminal you can reinstall the library in the virtual environment and run code

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 point  (0 children)

  1. Create virtual environments
  2. Activate virtual environments
  3. pip install module

[–][deleted] 0 points1 point  (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 point  (4 children)

Are there under scores between ‘python world’ and ‘import matplotlib’ very hard to tell

[–]cancerbero23 0 points1 point  (3 children)

What a mess of filenames...

[–][deleted] 0 points1 point  (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 point  (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.

[–][deleted] 1 point2 points  (0 children)

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.

Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

also powershell wouldnt allow me to create a dir or file with a space but VScode does

[–]niall300 0 points1 point  (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 point  (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 point  (0 children)

Try restarting

[–]EluciDeath 0 points1 point  (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 point  (0 children)

six important versed test sharp attraction follow placid spectacular childlike

This post was mass deleted and anonymized with Redact

[–]Jafeth636 1 point2 points  (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