Unable to import termios package

Viewed 30035

I am using Python 3.7 and I need to import termios to mask a password input. But I am unable to find it on https://pypi.org/

import sys, tty, termios

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import sys, tty, termios
  File "C:\Python37\lib\tty.py", line 5, in <module>
    from termios import *
ModuleNotFoundError: No module named 'termios'
2 Answers

In my case there was an unnecessary hint from VS Code asking for this import however as said in this thread it does not work on windows environment.

In my case it could be removed without issue.

Related