导入ctypes python模块运行时出错错误:ffi_prep_关闭失败,错误为2

2024-05-18 23:40:14 发布

您现在位置:Python中文网/ 问答频道 /正文

导入ctype python模块时,出现以下错误:

root@root# python

Python 2.7.3 (default, Jul  7 2014, 18:10:53) 
[GCC 4.7.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import ctypes

Traceback (most recent call last):

  File "stdin", line 1, in "module"

  File "/usr/lib32/python2.7/ctypes/__init__.py", line 555, in "module"

    _reset_cache()
  File "/usr/lib32/python2.7/ctypes/__init__.py", line 279, in _reset_cache

    CFUNCTYPE(c_int)(lambda: None)
RuntimeError: ffi_prep_closure failed with 2
>>> 

如果需要更多信息,请告诉我。在

谢谢


Tags: 模块inpycacheinitusr错误line

热门问题