Add "Unknown locale" issue to troubleshooting guide (see #1684, #1641, #1517)

This commit is contained in:
ines 2017-12-05 13:17:55 +01:00
parent 40638b7cdf
commit 7ade336ab7
1 changed files with 18 additions and 0 deletions

View File

@ -55,6 +55,24 @@ p
| the latest version of pip. To see which version you have installed, | the latest version of pip. To see which version you have installed,
| run #[code pip --version]. | run #[code pip --version].
+h(3, "unknown-locale") Unknown locale: UTF-8
+code(false, "text").
ValueError: unknown locale: UTF-8
p
| This error can sometimes occur on OSX and is likely related to a
| still unresolved #[+a("https://bugs.python.org/issue18378") Python bug].
| However, it's easy to fix: just add the following to your
| #[code ~/.bash_profile] or #[code ~/.zshrc] and then run
| #[code source ~/.bash_profile] or #[code source ~/.zshrc].
| Make sure to add #[strong both lines] for #[code LC_ALL] and
| #[code LANG].
+code(false, "bash").
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
+h(3, "import-error") Import error +h(3, "import-error") Import error
+code(false, "text"). +code(false, "text").