问题遇到的现象和发生背景
在windows用pip下载weditor时报错
C:\Users\softsec-BM>pip3 install weditor
Collecting weditor
Using cached weditor-0.6.5.tar.gz (2.2 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
ERROR:root:Error parsing
File "c:\users\softsec-bm\appdata\local\programs\python\python38\lib\email\parser.py", line 53, in parse
data = fp.read(8192)
UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 825: illegal multibyte sequence
error in setup command: Error parsing C:\Users\softsec-BM\AppData\Local\Temp\pip-install-qn6si1vo\weditor_4e5e3898eefe4f7ba2197191eb49ff69\setup.cfg: UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 825: illegal multibyte sequence
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed