Baidu in the online solution to others, found that the need for the following two steps can be achieved, but most of the methods are only the first step.
Step 1:
Open packages in the installation folder of sublime text and find the Python.sublime -Package, open with decompression software, modify the files inside Python.sublime -Build, add “encoding”: “cp936”
{
"cmd": ["C:/Python33/python.exe", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "cp936"//Add the line, followed by a comma if there is content below
}
Step 2:
Pythonioencoding is added to the system variable, and UTF-8 is filled in the value
On the desktop, right-click on Computer and select Properties, select Advanced System Settings, select the Advanced tab, select Environment Variables
Restart sublime text2.
Read More:
- Sublime text4 install package error [How to Solve]
- [Solved] Pylink Windows Chinese path error: Specified file could not be opened
- (Keil MDK) UCOS floating point support abnormal solution
- Error: Your CLT does not support macOS 11.6 [How to Solve]
- [Solved] MindSpore Error: StridedSlice operator does not support input of uint8 data type on Ascend hardware
- [Solved] MindSpore Error: ReduceMean in the Ascend environment does not support inputs of 8 or more dimensions
- Oracle prompt text does not match format string
- Cmake Setting Support C++11 This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options
- [Solved] SVN error: does not support the HTTP/DAV protocol
- [Solved] TensorFlow Error: ‘Tensor‘ object does not support item assignment
- Postgres Multiple data insertion error: The ‘default‘ dialect with current database version settings does not support
- [Solved] error: package android.support.design.widget does not exist
- [Solved] GBase 8a V95 Replace Node Error: single vc mode does not support ‘–freenode’
- [Solved] dhl: Error: LINQ to Entities does not support the specified type member “Date”
- [Solved] Pytorch3d Error: RuntimeError: Not compiled with GPU support.
- [Solved] Hikvision SDK: NET_DVR_GetDVRConfig failed Device does not support this function
- [How to Solve] Easyclick read text garbled
- MacOS Mojave uses SMB LAN share as backup disk of timemachine time machine. Disk does not support time machine backups. (error 45)
- [Solved] swiper Error: The requested module ‘react’ is expected to be of type CommonJS, which does not support named exports. CommonJS modules can be imported by importing the default export
- Stream to MemoryStream to solve Stream.Length error report This stream does not support search operations