[neko@host temp]$ ls select.py [neko@host temp]$ cat select.py print("hello, world!") [neko@host temp]$ python Python 3.10.9 (main, Dec 19 2022, 17:35:49) [GCC 12.2.0] on linux Type "help", "copyright", "credits" or "license"for more information. >>> import platform hello, world! Traceback (most recent call last): File "/usr/lib/python3.10/subprocess.py", line 69, in <module> import msvcrt ModuleNotFoundError: No module named 'msvcrt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.10/platform.py", line 119, in <module> import subprocess File "/usr/lib/python3.10/subprocess.py", line 76, in <module> import selectors File "/usr/lib/python3.10/selectors.py", line 291, in <module> class SelectSelector(_BaseSelectorImpl): File "/usr/lib/python3.10/selectors.py", line 318, in SelectSelector _select = select.select AttributeError: module 'select' has no attribute 'select' >>>