且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Python语言环境错误:不支持的语言环境设置

更新时间:2022-12-28 23:41:23

运行以下命令

export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
sudo dpkg-reconfigure locales

它将解决此问题.

确保将.UTF-8部分与locale -a输出中找到的实际语法匹配,例如.utf8在某些系统上.

Make sure to match the .UTF-8 part to the actual syntax found in the output of locale -a e.g. .utf8 on some systems.