使用 nodebox 作为 python 3.5 的模块

use nodebox as a module for python 3.5

我正在尝试将 nodebox.graphics 中的所有内容导入我的 python 3.5 代码,但出现错误:

提一下,这个模块存在于 nodebox/graphics。当我在 python 文档中搜索时,我必须将 nodebox 和 pyglet 文件夹添加到我的代码目录中,但这没有用。

我也没有成功将它们添加到系统目录中。

我怎样才能正确解决问题和运行我的代码?

P.S。如果重要的话,我目前正在使用 ubuntu 16.04。

我有同样的错误。将除 __init__.py 文件之外的所有 .py 文件(这很重要)放置在主库文件夹中为我修复了它。最终路径应该类似于 ~/lib/python3.5/site-packages/bezier.py