问题
I am attempting to pip install termios module and it gives me the following error
Could not find a version that satisfies the requirement termios (from versions: ) No matching distribution found for termios
I have attempted this on Python 2.7 and 3.5. On linux.
回答1:
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...
- If you're trying to install it on Windows, it will not work because Windows is not a POSIX platform.
- If you're trying to install it on Linux, macos, or other POSIX platforms, then there's no need. Just
import termiosin your Python script. If that fails, then your Python install is broken and you should reinstall Python.
来源:https://stackoverflow.com/questions/54394804/unable-to-get-missing-termios-module-how-do-i-properly-get-it