Traceback (most recent call last): File "D:\Facial-Expression-Recognition.Pytorch-master\Facial-Expression-Recognition.Pytorch-master\mainpro_CK+.py", line 15, in <module> import utils File "D:\Facial-Expression-Recognition.Pytorch-master\Facial-Expression-Recognition.Pytorch-master\utils.py", line 20, in <module> _, term_width = os.popen('stty size', 'r').read().split() ValueError: not enough values to unpack (expected 2, got 0)
时间: 2023-06-17 14:08:40 浏览: 394
这个错误是由于在执行 `os.popen('stty size', 'r').read().split()` 时,没有返回正确的结果。可能是因为你正在使用的操作系统不支持 `stty size` 命令。你可以尝试在终端输入 `stty size` 命令看看是否能够正确输出终端窗口的大小。如果不能输出正确的大小,你可以尝试使用其他方法获取终端窗口大小,例如使用 `os.get_terminal_size()` 方法。
阅读全文
相关推荐


