Unable to get missing termios module. How do I properly get it?

前端 未结 1 1809
清歌不尽
清歌不尽 2021-01-22 10:08

I am attempting to pip install termios module and it gives me the following error

Could not find a version that satisfies the requirement ter

相关标签:
1条回答
  • 2021-01-22 10:45

    termios is part of the Python Standard Library, which means it comes with Python. It provides an interface to the POSIX terminal calls of the underlying OS, which means it only applies on POSIX platforms. So...

    1. If you're trying to install it on Windows, it will not work because Windows is not a POSIX platform.
    2. If you're trying to install it on Linux, macos, or other POSIX platforms, then there's no need. Just import termios in your Python script. If that fails, then your Python install is broken and you should reinstall Python.
    0 讨论(0)
提交回复
热议问题