ValueError: unknown locale: UTF-8 while run python app.py
OS:Mac os 10.11.2 (15C50)
Python Version:2.7.11
after i try to run the app.py ,i got this error information:
File "/Users/brucedone/anaconda/lib/python2.7/site-packages/matplotlib/init.py", line 1000, in _open_file_or_url encoding = locale.getdefaultlocale()[1] File "/Users/brucedone/anaconda/lib/python2.7/locale.py", line 543, in getdefaultlocale return _parse_localename(localename) File "/Users/brucedone/anaconda/lib/python2.7/locale.py", line 475, in _parse_localename raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: UTF-8
then i google it find the solution like this one: http://stackoverflow.com/questions/19961239/pelican-3-3-pelican-quickstart-error-valueerror-unknown-locale-utf-8:
then after i do the all things and output this ○ → python -c 'import locale; print(locale.getdefaultlocale());' ('en_US', 'UTF-8')
it seems i have already add the utf-8 coding to my system.
but i still got error while i try to run the app.py
anyone could help ?
after i refer this: http://stackoverflow.com/questions/33716748/python-valueerror-unknown-locale-utf-8
i update the pandas with the newest version and update the .bashrc file too ,then it pass this error