ModuleNotFoundError:Fusion360 环境中没有名为“PIL”的模块

问题描述

我正在研究 fusion360 python API 并面临一些库问题。实际上,我在我的代码中导入了 PIL python 库,它给出了 ModuleNotFoundError: No module named 'PIL' 的错误。谁能知道如何在 fusion360 环境中添加外部 python 库,允许我将 PIL python 库用于 fusion360 API?

enter image description here

解决方法

据我所知,没有简单的方法可以做到这一点。 Fusion 360 使用单独的 Python 版本,该版本仅包含标准库。这里提到了一些解决方法:

https://forums.autodesk.com/t5/fusion-360-api-and-scripts/to-install-python-modules/td-p/5777176

但总的来说,最好坚持使用标准库,因为让其他库工作将是乏味的工作。并且很可能会在 Fusion 360 进行更新后停止工作