【发布时间】:2022-04-25 23:37:48
【问题描述】:
我在 Ubuntu 上构建了 Blender 作为 python 模块。 Ran make install 更新了站点包。运行 python3 -m site 会返回以下内容:
sys.path = [
'/root/blender-git/build_linux_bpy',
... a bunch of other paths here ...
]
USER_BASE: '/root/.local' (doesn't exist)
USER_SITE: '/root/.local/lib/python3.8/site-packages' (doesn't exist)
ENABLE_USER_SITE: True
当我尝试执行导入 Blender 模块 bpy 的简单 test.py 时,我收到 no module named 'bpy' 错误。不熟悉python导入规则或如何添加模块,所以不清楚我做错了什么。我也尝试过显式设置 sys.path 但这也不起作用。
【问题讨论】:
标签: python ubuntu module blender bpy