当我在screen
中使用tqdm
时,它会无限制地打印新行,并在进度条中输出未知字符。
Epoch 0: 5%|�� | 255/5474 [03:31<1:12:09, 1.21it/s]
Epoch 0: 2%|� | 90/5474 [01:24<1:23:46, 1.07it/s]
Epoch 0: 2%|� | 89/5474 [01:23<1:23:57, 1.07it/s]
我使用了默认的 shell
bash
并添加了以下配置。export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
root@35573c9f245c:~/git/pytorch-openai-transformer-lm# cat ~/.screenrc
# ~/.screenrc
defshell -bash # dash makes it a login shell
相同的代码在其他终端上可以正常运行。
有关此问题的任何提示?谢谢!