Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

matplotlib and anaconda issue

I uninstalled matplotlib, but now for whatever command I try to run on my terminal, matplotlib-related or not, I get the following message. How do I solve?

Error processing line 1 of /anaconda3/lib/python3.6/site-packages/matplotlib-2.2.2-py3.6-nspkg.pth:

Traceback (most recent call last):
  File "/anaconda3/lib/python3.6/site.py", line 168, in addpackage
    exec(line)
  File "<string>", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 568, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
like image 962
Ana Olano Avatar asked Nov 06 '22 23:11

Ana Olano


1 Answers

If you already uninstalled matplotlib, you can safely remove the .pth file and the problem should go away.

like image 120
Keith Hughitt Avatar answered Nov 15 '22 05:11

Keith Hughitt