I dont know. How to fix this, please help, I tried everything that was mentioned in the message Error importing matplotlib.pyplot (on Anaconda3 for Windows 10 Home 64-bit PC) , but no luck. I am new to python and myself studying specific details that will be greatly appreciated.
Console:
Traceback (most recent call last): from matplotlib import pyplot File "C:\Users\...\lib\site-packages\matplotlib\pyplot.py", line 29, in <module> import matplotlib.colorbar File "C:\Users\...\lib\site-packages\matplotlib\colorbar.py", line 34, in <module> import matplotlib.collections as collections File "C:\Users\...\lib\site-packages\matplotlib\collections.py", line 27, in <module> import matplotlib.backend_bases as backend_bases File "C:\Users\...\lib\site-packages\matplotlib\backend_bases.py", line 62, in <module> import matplotlib.textpath as textpath File "C:\Users\...\lib\site-packages\matplotlib\textpath.py", line 15, in <module> import matplotlib.font_manager as font_manager File "C:\Users\...\lib\site-packages\matplotlib\font_manager.py", line 1421, in <module> _rebuild() File "C:\Users\...\lib\site-packages\matplotlib\font_manager.py", line 1406, in _rebuild fontManager = FontManager() File "C:\Users\...\lib\site-packages\matplotlib\font_manager.py", line 1044, in __init__ self.ttffiles = findSystemFonts(paths) + findSystemFonts() File "C:\Users\...\lib\site-packages\matplotlib\font_manager.py", line 313, in findSystemFonts for f in win32InstalledFonts(fontdir): File "C:\Users\...\lib\site-packages\matplotlib\font_manager.py", line 231, in win32InstalledFonts direc = os.path.abspath(direc).lower() File "C:\Users\...\lib\ntpath.py", line 535, in abspath path = _getfullpathname(path) ValueError: _getfullpathname: embedded null character
Python:
importing libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd
source share