Skip to content Skip to sidebar Skip to footer

Importin Dll In Python On Linux

Hello I have this code that runs perfectly on Windows: import ctypes import sys import os from ctypes import * from numpy import * import time from ctyp

Solution 1:

er... you can't do that;

Shared libraries are very OS dependent, so a library built for windows cannot possibly work in linux, or visa versa.

Except that you might get some luck with Wine, which is a Windows runtime which works across many platforms. I have certainly had some success running Python binaries within wine.

Solution 2:

On Linux, we have something called shared object (.so) instead of DLL's.

Long story short: you can't load a Windows DLL on a Linux system. You need to compile a Linux shared library ("edk.so").

Post a Comment for "Importin Dll In Python On Linux"