I think another safer option is to run all the code in a normal Python interpreter, so the dependency packages don't need to compatible with calibre's Python. And this should require less maintenance effort when pip or calibre updates. And thanks for your help!
|