无法生成Lup

2024-06-07 10:46:58 发布

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

我试图在Windows7 64位平台上编译Lupa,并且已经安装了所有的依赖项(包括LuaJIT2和lua5.2)。但是当我试图通过运行

python setup.py install

关于依赖关系我会出错,通常是.m文件。在

例如:

lupa/_lupa.c(265) : fatal error C1083: Cannot open include file: 'lua.h': No such file or directory

我尝试过手动添加文件,但这只会导致更多问题,例如:

c:\mingw\include\stdint.h:118:0: note: this is the location of the previous definition
 #define INT_LEAST64_MIN INT64_MIN
 ^
In file included from _lupa.c:271:0:
stdint.h:154:0: warning: "INT_LEAST64_MAX" redefined [enabled by default]
  #define INT_LEAST64_MAX 0x7fffffffffffffff
 ^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\stdint.h:9:0,
                 from c:\mingw\include\wchar.h:876,
                 from unicodeobject.h:120,
                 from Python.h:85,
                 from _lupa.c:30:
c:\mingw\include\stdint.h:123:0: note: this is the location of the previous definition
 #define INT_LEAST64_MAX INT64_MAX
 ^
In file included from _lupa.c:271:0:
stdint.h:155:0: warning: "UINT_LEAST64_MAX" redefined [enabled by default]
  #define UINT_LEAST64_MAX 0xffffffffffffffffU
 ^

请注意,这是我在控制台收到的垃圾邮件的一小部分摘录。我尝试了太多我无法掌握的东西。我尝试过使用gcc,但没有效果,有朋友试图帮助我。我完全被难住了。请帮帮我!在

哦,这里有一个完整的日志,记录了我在不更改文件的情况下运行安装程序的情况:

^{pr2}$

Tags: 文件theinfromincludemaxfileint
1条回答
网友
1楼 · 发布于 2024-06-07 10:46:58

我不知道你是否还需要这个问题的答案,但我也遇到了同样的问题,我查看了lupa文件夹,看到了lupa.pyx,这意味着你需要Cython。预先运行pip install cython对我很有用。在

相关问题 更多 >

    热门问题