C# .NET DLL无法通过Python clr模块导入的问题求助
C# .NET DLL无法通过Python clr模块导入的问题求助
各位大佬好,我在尝试用Python的clr模块导入C# .NET编写的DLL时碰了壁,想请大家帮忙排查下问题:
以下是我的代码:
import clr clr.AddReference("PixelPilot.Core") from PixelPilot.Core import *
我已经尝试过不少方法来解决:
- 给目标DLL重命名
- 更换多种导入命名方式,比如
PixelPilot.Client、import PixelPilot等类似写法
但不管怎么试,每次都会抛出错误:ModuleNotFoundError: No module named 'PixelPilot'
有没有朋友能帮我分析下我到底哪里操作错了?
备注:内容来源于stack exchange,提问作者Tycho10101
相关产品推荐
相关产品推荐

