Home > Net >  Matplotlib import Error: ValueError: Key grid.color: '"' does not look like a color a
Matplotlib import Error: ValueError: Key grid.color: '"' does not look like a color a

Time:09-30

I am getting following error while importing matplotlib

import matplotlib
  warnings.warn("loaded more than 1 DLL from .libs:"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\xx\AppData\Roaming\Python\Python38\site-packages\matplotlib\__init__.py", line 876, in <module>
    rcParamsDefault = _rc_params_in_file(
  File "C:\Users\xx\AppData\Roaming\Python\Python38\site-packages\matplotlib\__init__.py", line 810, in _rc_params_in_file
    config[key] = val  # try to convert to proper type or raise
  File "C:\Users\xx\AppData\Roaming\Python\Python38\site-packages\matplotlib\__init__.py", line 646, in __setitem__
    raise ValueError(f"Key {key}: {ve}") from None
ValueError: Key grid.color: '"' does not look like a color arg

Versions

  • Python-3.8.13
  • matplotlib-3.6.0

Please let me know if any solution for this problem.

CodePudding user response:

I'm hitting the same issue downgraded to 3.5.1 and worked..but there's got to be a better solution

  • Related