首页 > 解决方案 > termios are not available in linux server

问题描述

I have a project that import termios and msvcrt to support Windows and Linux

In Windows, everything works fine, but in Linux when I test my project in python docker and also the main Linux server the following error occurred:

NameError: name 'termios' is not defined

What should I do to support Linux?

Sample Code

Envierment:

标签: pythonlinuxtermiospython-3.9

解决方案


推荐阅读