I would like to use Ansible on my ubuntu machine. I tried to use the ping module and it complains that it does not find the xmltodict
python library. I thus wanted to install the missing module using pip. When I try:
pip install xmltodict
I get:
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 583, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
I am running Ubuntu16.04 LTS. How can I fiy this? thanks
Best Answer
The solution is here: https://stackoverflow.com/questions/36394101/pip-install-locale-error-unsupported-locale-setting
Since I am running python2.7: