0

I'm trying to import matplotlib in pycharm but getting a runtime error. I've tried to reinstall and trying to run in CMD but still, it doesn't work. Appreciate help here.

The screen shot

6
  • How does your Error look? Is it something like this: RuntimeError: The current Numpy installation (...) fails to pass a sanity check due to a bug in the windows runtime. ? Commented Dec 19, 2020 at 13:21
  • Please don't post images of code/data/error messages. Post the text directly here on SO. See here for an explanation why: idownvotedbecau.se/imageofanexception Commented Dec 19, 2020 at 13:49
  • Could you please post the error message, and the code? Commented Dec 19, 2020 at 13:56
  • Hi, below is the detail of the error: Commented Dec 20, 2020 at 13:05
  • import matplotlib Traceback (most recent call last): File "<input>", line 1, in <module> File "C:\Program Files\JetBrains\PyCharm 2020.2.4\plugins\python\helpers\pydev_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "C:\Users\nisha\PycharmProjects\matplotlib_tut\venv\lib\site-packages\matplotlib_init_.py", line 107, in <module> from . import cbook, rcsetup File "C:\Program Files\JetBrains\PyCharm 2020.2.4\plugins\python\helpers\pydev_pydev_bundle\pydev_import_hook.py", line 21, in do_import Commented Dec 20, 2020 at 13:08

1 Answer 1

3

Perhaps you should run

pip3 install matplotlib

first in the command line.

Sign up to request clarification or add additional context in comments.

1 Comment

Still I'm getting the same error when trying to import matplotlib

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.