Forked from aduquet/Fix python unsupported locale error in Debian based distro
Created
November 3, 2020 07:30
-
-
Save sansyrox/861ecd8f9c48d7fcb876e10088ed5444 to your computer and use it in GitHub Desktop.
locale.Error: unsupported locale setting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I was installing some python libraries that I needed, and this message came up: | |
Traceback (most recent call last): | |
File "/usr/bin/pip3", line 11, in <module> | |
sys.exit(main()) | |
File "/usr/lib/python3/dist-packages/pip/__init__.py", line 215, in main | |
locale.setlocale(locale.LC_ALL, '') | |
File "/usr/lib/python3.5/locale.py", line 594, in setlocale | |
return _setlocale(category, locale) | |
locale.Error: unsupported locale setting | |
To solve this error, Try with the following: | |
export LC_ALL="en_US.UTF-8" | |
export LC_CTYPE="en_US.UTF-8" | |
sudo dpkg-reconfigure locales | |
Above 3 commands will reconfigure locales and that should solve the issue. | |
I will hope that the above works! Good Luck! | |
kind regards! | |
Aleja :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment