1. 程式人生 > >tensorboard:locale.Error: unsupported locale setting錯誤

tensorboard:locale.Error: unsupported locale setting錯誤

locale命令

locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=zh_CN.UTF-8
LC_TIME=zh_CN.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=zh_CN.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=zh_CN.UTF-8
LC_NAME=zh_CN.UTF-8
LC_ADDRESS=zh_CN.UTF-8
LC_TELEPHONE=zh_CN.UTF-8
LC_MEASUREMENT=zh_CN.UTF-8
LC_IDENTIFICATION=zh_CN.UTF-8
LC_ALL=

可以發現LANGUAGE和LC_ALL這兩項的值為空。 
那麼執行export LANGUAGE=en_US.UTF-8 和 export LC_ALL=en_US.UTF-8 
使得編碼方式統一。這樣可以成功執行tensorboard --logdir命令