UnicodeEncodeError ‘ascii’ codec can’t encode characters in position ordinal not in range(128)

https://unix.stackexchange.com/questions/399556/how-to-avoid-having-to-export-lc-all-zh-cn-utf-8-upon-each-ssh-connection

You are missing the export in your ~/.bashrc.

export LC_ALL=zh_CN.UTF-8

When you login to your user in the remote server via ssh, the ~/.bashrc of that user will get sourced and the locale will be set.

你可能感兴趣的:(python,环境配置)