红联Linux门户
Linux帮助

locale.Error: unsupported locale setting报错解决

发布时间:2017-03-10 11:04:29来源:linux网站作者:yark志
当我在安装docker-compose时报错:
root@localhost:/etc/apt# pip install docker-compose
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
 
解决方法:
export LC_ALL=C
再次执行时,报错消失。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/29065.html