Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/354.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python mac上的MCP2210 DLL_Python_Macos_Dll_Ctypes - Fatal编程技术网

Python mac上的MCP2210 DLL

Python mac上的MCP2210 DLL,python,macos,dll,ctypes,Python,Macos,Dll,Ctypes,对于一个项目,我使用MCP2210。在microchip的网站上,我找到了DLL文件。现在我想尝试在macOS上编写一些python代码,但dLL文件仅适用于windows。有没有办法为macOS转换te DLL?还是有其他解决方案 我尝试使用导入文件 mcp_dll=ctypes.CDLL(“Path_to_dll.dll”)No.dll是windows特定的格式,您需要macOS的版本。那么mac的等效版本是什么?如何将其导入Python?您需要一个适用于macos(和linux)的.so文

对于一个项目,我使用MCP2210。在microchip的网站上,我找到了DLL文件。现在我想尝试在macOS上编写一些python代码,但dLL文件仅适用于windows。有没有办法为macOS转换te DLL?还是有其他解决方案

我尝试使用导入文件
mcp_dll=ctypes.CDLL(“Path_to_dll.dll”)

No.dll是windows特定的格式,您需要macOS的版本。那么mac的等效版本是什么?如何将其导入Python?您需要一个适用于macos(和linux)的.so文件。是否有适用于MCP2210的.so文件?如果您转到下载页面并单击“linux库”,您会看到: