python - Error when importing Matplotlib using Anaconda IDE -
i have installed anaconda 3 , i'm trying use pylab plot function . when using line code :from matplotlib import *
, following error , i've been trying solve 3 days . tried conda update -all, or instaling previous version of matplotlib . here error :
runfile('c:/users/usuario/.spyder2-py3/temp.py', wdir='c:/users/usuario/.spyder2-py3') traceback (most recent call last): file "<ipython-input-1-9b55d1cb87fc>", line 1, in <module> runfile('c:/users/usuario/.spyder2-py3/temp.py', wdir='c:/users/usuario/.spyder2-py3') file "c:\anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 714, in runfile execfile(filename, namespace) file "c:\anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 89, in execfile exec(compile(f.read(), filename, 'exec'), namespace) file "c:/users/usuario/.spyder2-py3/temp.py", line 3, in <module> pylab import * file "c:\anaconda3\lib\site-packages\pylab.py", line 1, in <module> matplotlib.pylab import * file "c:\anaconda3\lib\site-packages\matplotlib\pylab.py", line 231, in <module> import matplotlib.finance file "c:\anaconda3\lib\site-packages\matplotlib\finance.py", line 27, in <module> matplotlib.collections import linecollection, polycollection file "c:\anaconda3\lib\site-packages\matplotlib\collections.py", line 27, in <module> import matplotlib.backend_bases backend_bases file "c:\anaconda3\lib\site-packages\matplotlib\backend_bases.py", line 62, in <module> import matplotlib.textpath textpath file "c:\anaconda3\lib\site-packages\matplotlib\textpath.py", line 15, in <module> import matplotlib.font_manager font_manager file "c:\anaconda3\lib\site-packages\matplotlib\font_manager.py", line 1421, in <module> _rebuild() file "c:\anaconda3\lib\site-packages\matplotlib\font_manager.py", line 1406, in _rebuild fontmanager = fontmanager() file "c:\anaconda3\lib\site-packages\matplotlib\font_manager.py", line 1044, in __init__ self.ttffiles = findsystemfonts(paths) + findsystemfonts() file "c:\anaconda3\lib\site-packages\matplotlib\font_manager.py", line 313, in findsystemfonts f in win32installedfonts(fontdir): file "c:\anaconda3\lib\site-packages\matplotlib\font_manager.py", line 231, in win32installedfonts direc = os.path.abspath(direc).lower() file "c:\anaconda3\lib\ntpath.py", line 535, in abspath path = _getfullpathname(path) valueerror: _getfullpathname: embedded null character`
any idea on how fix ?