在配置和部署YOLOX工程是出现错误
UnicodeEncodeError: ‘utf-8’ codec can’t encode characters in position 23-24: surrogates not allowed
解决方法
- 找到虚拟环境下envs/gly-yolox/lib/python3.7/zipfile.py的zipfile.py文件;
- 将return self.filename.encode(‘utf-8’), self.flag_bits | 0x800改成return self.filename.encode(‘utf-8’, ‘ignore’), self.flag_bits | 0x800;
- 配置过程中还需要很多其他的依赖包,提示缺什么库就安装什么库就可以了;
- 最后成功解决。