我在尝试学习gradio的时候,发现怎么调整都会报错UnicodeDecodeError: 'gbk' codec can't decode byte 0xb2 in position 1972: illegal multibyte sequence
出现这个错误的gradio版本为4.22.0
PS E:\Python_File\Chat> pip list | findstr gradio
WARNING: You are using pip version 22.0.4; however, version 24.0 is available.
You should consider upgrading via the 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.
gradio 4.22.0
gradio_client 0.13.0
后面降低到4.0.0就正常了,很奇怪,不过解决问题了,分享一下万一需要的人
先卸载:pip uninstall gradio
再安装:pip install gradio==4.0
查看版本:pip list | findstr gradio
再运行
成功!