Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 ctypes 模块在 ubuntu 中导入 VIX api 库。当我做:
vix = CDLL('libvix.so')
它失败了:“无法打开......”
有什么问题???libvix.so 和 python 模块在同一个目录下
谢谢!!
如果其余的错误类似于
OSError: libvix.so: cannot open shared object file: No such file or directory
然后您可能需要将 libvix.so 的位置放在 LD_LIBRARY_PATH 环境变量中。