报错代码:
'gbk' codec can't encode character '\xe5' in position 13665: illegal multibyte sequence
解决方法:
进入python的安装目录,找到lib 文件夹,找到subprocess.py,将参数 encoding=“None” 修改为 encoding=“utf-8” 即可。
python\lib\subprocess.py
def __init__(self, args, bufsize=-1, executable=None,
stdin=None, stdout=None, stderr=None,
preexec_fn=None, close_fds=_PLATFORM_DEFAULT_CLOSE_FDS,
shell=False, cwd=None, env=None, universal_newlines=False,
startupinfo=None, creationflags=0,
restore_signals=True, start_new_session=False,
pass_fds=(), *, encoding='utf-8', errors=None):
"""Create new Popen instance."""
_cleanup()