python2修改源码到python3过程中出现问题

Trouble in the process of modifying source code from python2 to python3

https://gist.github.com/medicalwei/c9fdcd9ec19b0c363ec1,link 指向在 python2 中编写的源代码,旨在将仿粗体算法应用于 trutype(.ttf) 文件以生成新的 trutype(.ttf)文件。自己电脑安装python2不方便,打算转源码。在修改它的过程中,我在 Google 或 Pypi 上都没有找到名为“generate_c_byte_array”的模块。在这种情况下我能做什么?

generate_c_byte_array 是您尝试转换的应用程序中的一个模块:https://github.com/MarSoft/pebble-firmware-utils/blob/master/generate_c_byte_array.py

有它的代码,它不能作为库使用 pip 安装。