python - 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?
Envierment:
- Python version: v3.9
- Linux distribution: Ubuntu
解决方案
推荐阅读
- php - 使用 XAdES-T 时间戳响应 (TSR) 附加 XML
- java - 获取 JBoss 应用程序的构建时间戳
- reactjs - React 17:“useEffect 缺少依赖项”与 useMutation 函数
- visual-studio - 在 Visual Studio 2019 中修改项目节点上的图标
- bash - 在 bash 3 中声明 -A
- nodemailer - 我的 nodemailer 在 localhost 上运行良好,但在部署时无法运行
- ios - SwiftUI SearchBar 关键字未将值发布到 viewModel
- amazon-ec2 - Amazon 弹性文件系统策略 (EFS) - 允许通过 IAM 角色访问 EC2 实例不起作用
- python - 使用python从文件中提取某行之前和之后的行作为特定列中的特定字符
- reactjs - Nextjs getStaticProps 可能会在通过 React Table 进行数据搜索的过程中重新渲染