logo image

Unable to install es2csv in Ubuntu


I am getting error locale.Error: unsupported locale setting when trying to install es2csv on Ubuntu 16.04 Following is the complete trace

[email protected]:~# pip install es2csv
Traceback (most recent call last):
  File "/usr/bin/pip", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 215, in main
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.7/locale.py", line 581, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

1 Answer

2 years ago by

Run export LC_ALL=C before installing es2csv. So the installation commands looks like below

export LC_ALL=C
pip install es2csv
2 years ago by Megamind