首页 > 解决方案 > 如何在 (Anaconda) Spyder 中使用 Blender 中的 blenderpy 模块

问题描述

我已经尝试安装模块bpy(blenderpy),以便能够直接从 Spyder IDE 使用 Python 3.8.5 为 Blender 运行 python 脚本。但是,我似乎无法为此找到一个好的解决方案。

我尝试在 Github 上关注这个wiki,以使用为bpy version 2.82. 我安装了所有必需的程序并尝试在 Spyder 控制台中安装bpy!pip install bpy --no-binary :all:就像在 wiki 中建议的那样。不幸的是,bpy version 2.82与 Windows Python 3.8.5 不兼容:

in build_cmake
    raise Exception(f"{VERSION} bpy is not compatible with "
Exception: 2.82 bpy is not compatible with Windows Python 3.8.5 (default, Sep  3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] 64bit [...]

否则 bpy 的安装可能会起作用。

我现在的问题是:是否有更新的版本bpy可以安装pip并与(Anaconda)Spyder python 3.8.5 兼容?如果没有,我需要安装 Python 的哪个 Anaconda 发行版才能与 bpy 2.82 兼容?您如何手动将模块(如 bpy)添加到您的 Spyder IDE,这些模块在 Python 的 Anaconda-Distribution 中不可用且无法通过 anaconda.org 安装?

标签: pythonpython-3.xanacondaspyderblender

解决方案


推荐阅读