问题描述
在尝试为(Python 2.5,WinXP)加速安装simplejson软件包时,出现以下错误。 PlainJSON的simplejson Python安装成功,但我想安装加速功能。
错误
In file included from C:\Python25\include/Python.h:84:0,from simplejson/_speedups.c:2:
C:\Python25\include/intobject.h:44:35: error: expected '=',',';','asm' or ' before'
PyInt_AsUnsignedLongLongMask'
PyAPI_FUNC(unsigned PY_LONG_LONG) PyInt_AsUnsignedLongLongMask(PyObject *);
^
In file included from C:\Python25\include/Python.h:86:0,from simplejson/_speedups.c:2:
C:\Python25\include/longobject.h:43:1: warning: parameter names (without types) in function
declaration
PyAPI_FUNC(PyObject *) PyLong_FromLongLong(PY_LONG_LONG);
^
In file included from C:\Python25\include/Python.h:57:0,from simplejson/_speedups.c:2:
C:\Python25\include/pyconfig.h:257:23: error: unknown type name '__int64'
# define PY_LONG_LONG __int64
^
C:\Python25\include/pyport.h:637:28: note: in definition of macro 'PyAPI_FUNC'
# define PyAPI_FUNC(RTYPE) RTYPE
^
C:\Python25\include/longobject.h:45:12: note: in expansion of macro 'PY_LONG_LO '
PyAPI_FUNC(PY_LONG_LONG) PyLong_AsLongLong(PyObject *);
^
In file included from C:\Python25\include/Python.h:86:0,from simplejson/_speedups.c:2:
C:\Python25\include/longobject.h:46:35: error: expected '=','asm' or ' befo
re 'PyLong_AsUnsignedLongLong'
PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLong(PyObject *);
^
C:\Python25\include/longobject.h:47:35: error: expected '=','asm' or ' befo
re 'PyLong_AsUnsignedLongLongMask'
PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *);
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)