ValueError: _getfullpathname: embedded null character
解决方法:
到python3.5的安装文件目录libs下找到font_manager.py文件
direc = os.path.abspath(direc).lower()
改为:
direc = direc.split('\0', 1)[0]
保存即可。
本文介绍了一种常见的Python字体管理器错误“_getfullpathname:embeddednullcharacter”的解决办法。该错误通常出现在使用特定版本的Python时。解决步骤包括定位并修改Python安装目录下的font_manager.py文件。
解决方法:
到python3.5的安装文件目录libs下找到font_manager.py文件
direc = os.path.abspath(direc).lower()
改为:
direc = direc.split('\0', 1)[0]
保存即可。
3338
7890
5437

被折叠的 条评论
为什么被折叠?