为什么我的 .exe [Made with pyinstaller] 说 blessed setupterm(kind=vtwin10), the vtwin10 terminal was not found?

Why is my .exe[Made with pyinstaller] says that blessed setupterm(kind=vtwin10),the vtwin10 terminal was not found?

你好,我在 virtualenv 中用 python 制作了一个国际象棋机器人,我的机器人使用 blessed 为它使用 pyinstaller 显示的棋盘着色我 运行 我的 cmd 上的命令 pyinstaller random_move_chessbot.py --onefile,它生成了 exe 文件,但是当我 运行 文件时,它显示错误 blessed\terminal.py:186: UserWarning: Failed to setupterm(kind='vtwin10'): Could not find terminal vtwin10。 谁能告诉我为什么会这样?
提前致谢...

from random import *
import chess
import blessed

board = chess.Board()
term = blessed.Terminal()
run = True

print('Your playing white')

def blackmove():
    black_moves = board.legal_moves
    black_moves = list(black_moves)
    bmove = randint(0, len(black_moves))
    black_move = black_moves[bmove]
    board.push(black_move)

print('To exit write "exit"')
while run:
    white_move = input('Enter Move:')
    if white_move == 'exit':
        run = False
        exit()
    board.push_san(white_move)
    print(term.yellow("White's Turn"))
    if board.is_check == True:
        print(f'{term.red}{board}{term.normal}')
    else:
        print(f'{term.blue}{board}{term.normal}')
    blackmove()
    print(term.yellow("Black's Turn"))
    if board.is_check == True:
        print(f'{term.red}{board}{term.normal}')
    else:
        print(f'{term.green}{board}{term.normal}')
    if board.is_checkmate == True or board.is_stalemate == True:
        run = False
        print(board)
        print(board.result)
        exit = False
        while exit != True:
            a = input('Exit[y/n]:')
            match a:
                case 'y':
                    exit = True
                case 'n':
                    pass

看来我找到了解决方法;
您必须输入此命令,以便在 jinx 库中导入 vtwin10 终端 pyinstaller --hidden-import=jinxed.terminfo.vtwin10 --onefile test.py