#Trouble implementing module

13 messages · Page 1 of 1 (latest)

coral zealot
#

anybody know how to fix a module not being recognized?

I installed 'matplotlib' but still get the message:
import matplotlib
ModuleNotFoundError: No module named 'matplotlib'

not sure if maybe I installed it incorrectly or in the wrong place but I got no clue where to go from here :/ I used 'pip3 install matplotlib' in my command prompt (default and also tried installing it specifically where the .py file is located where I am trying to import it. Any ideas what im missing here?

inner pebble
#

Are you using pycharm?

inner pebble
#

@coral zealot

coral zealot
#

although both give me the same message

inner pebble
#

Interesting

#

Then I suspect that your python and pip3 have different paths in your command prompt

coral zealot
#

im pretty sure I downloaded it and updated the pip version during the same session if thats helpful to know

inner pebble
coral zealot
inner pebble
#

Did you create the project using pycharm?

civic arrow
#

Try this

python -m pip install matplotlib

If that works then you know something is broken with how pip is installed.