尝试在python2.7中导入ctypes时如何解决导入错误

时间:2019-01-31 12:08:58

标签: python python-2.7 python-import ctypes

我正在尝试在python 2.7中导入ctypes模块并得到此错误:

Traceback (most recent call last):
  File "setup.py", line 712, in <module>
    import ctypes
  File "C:\Users\Gilad\AppData\Local\Programs\Python\Python27\lib\ctypes\__init__.py", line 7, in <module>
    from _ctypes import Union, Structure, Array
ImportError: DLL load failed: The specified procedure could not be found.

我试图将DLLs文件添加到路径中,但它不起作用

0 个答案:

没有答案