I try to use matplotlib in my python script but I got this error in the terminal:
Traceback (most recent call last):
File "graphique.py", line 5, in <module>
import matplotlib.pyplot as plt
File "/home/xavier/anaconda/lib/python2.7/site-packages/matplotlib/__init__.py", line 1048, in <module>
rcParams = rc_params()
File "/home/xavier/anaconda/lib/python2.7/site-packages/matplotlib/__init__.py", line 897, in rc_params
fname = matplotlib_fname()
File "/home/xavier/anaconda/lib/python2.7/site-packages/matplotlib/__init__.py", line 748, in matplotlib_fname
fname = os.path.join(os.getcwd(), 'matplotlibrc')
File "/home/xavier/anaconda/lib/python2.7/posixpath.py", line 80, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 66: ordinal not in range(128)
Here is my python code, I simply wrote
# -*- coding: utf-8 -*-
import numpy as np
from math import *
import matplotlib.pyplot as plt
What do I have to do?