LookupError: unknown encoding: GB18030

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xvshu/article/details/81633985

linux 安装python3.5.2 遇到如下错误

Could not find platform dependent libraries <exec_prefix>

Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

Fatal Python error: Py_Initialize: Unable to get the locale encoding

LookupError: unknown encoding: GB18030

解决方案:

.config 之前

export LANG=zh_CN.UTF-8
export LANGUAGE=zh_CN.UTF-8
之后就解决了

猜你喜欢

转载自blog.csdn.net/xvshu/article/details/81633985