My colleague has upgraded Python from 3.10 to 3.12 on a server via unzipping the file "Windows embeddable package (64-bit)" downloaded at https://www.python.org/downloads/windows/ into the folder python310. Now I found that quit() does not quit python when python is started in a CMD window. The error message reads as below:
Traceback (most recent all last):
File "<stdin>", line 1, in <module>
NameError: name 'quit' is not defined.
How to solve this problem? Can still other problem occur? Is this kind of upgrade correct anyway? Many thanks in advance for any hints! Weichao Wang
-Sis included, then thesitemodule won't be automatically imported at startup, andexit/quitwon't be defined.