pytorch-cifar
pytorch-cifar copied to clipboard
ValueEroor
Sorry,I'm justly learn pytorch,runnning the code,happen error as follows: please give me some adivice,thank you!
'stty' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Traceback (most recent call last):
File "F:/Python Works/pytorch-cifar10-master/utils.py", line 45, in
This is linux code?
the same,it's maybe python version question
这个应该是windows平台的问题,在Linux上不会出现,直接定义term_width就可以了,例如term_width = 200
Did you guys able to fix it? I also got the same error
俺也一样
有具体的解决方法吗?
上面的乱码是'stty' 不是内部或外部命令,也不是可运行的程序或批处理文件。
,解决方法是下面这个老哥的方法。具体是找到_, term_width = os.popen('stty size', 'r').read().split()
这一行,注释掉,然后下面一行的term_width = int(term_width)
手动设置成200即可
这个应该是windows平台的问题,在Linux上不会出现,直接定义term_width就可以了,例如term_width = 200