NameError: name 'msvcrt' is not defined

Hongyi Zhao hongyi.zhao at gmail.com
Thu Sep 26 22:14:00 EDT 2019


Hi,

I use python on Debian, when running some python codes, I meet the 
following error:

-----------
 input_username.py", line 18, in read_input
    if msvcrt.kbhit():
NameError: name 'msvcrt' is not defined
------------


How to solve this issue?




More information about the Python-list mailing list