How to Change Python Error Messages to English
How to Change Python Error Messages to English
Setting your system's language to English can change Python's error messages from Chinese to English. Here's how to do it:
-
Open your terminal or command prompt.
-
Enter the following command:
-
Windows:
setx LANG 'en_US.UTF-8' -
Mac/Linux:
export LANG=en_US.UTF-8
-
-
Restart your Python interpreter. Now error messages will display in English.
原文地址: https://www.cveoy.top/t/topic/ocpe 著作权归作者所有。请勿转载和采集!