pyreadline no longer works under Windows 10 with Python 3.10 but works with python 3.9 See discussion in the forum: https://forum.micropython.org/viewtopic.php?f=15&t=11606