【问题标题】:fatal error LNK1112 when nuitka compile pythonnuitka 编译 python 时出现致命错误 LNK1112
【发布时间】:2018-01-19 04:02:02
【问题描述】:

当我使用 Nuitka 编译我的 python 项目时,出现了一个错误: python36.lib(python36.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'

我正在使用Windows 10 64bitNuitka 0.5.28.1 Python3.6 64 bitVisual Studio 2017 CommunityPython 3.6.3 |Anaconda custom (64-bit)|

我想构建一个x64 exe 文件。

我在互联网上搜索过Configuration PropertiesTarget Machine。但是,我在使用Nuitka时没有VS项目,所以不知道在哪里配置。

【问题讨论】:

    标签: python visual-studio compiler-errors architecture nuitka


    【解决方案1】:

    我今天刚遇到这个问题。

    我认为这是因为 anaconda 可能是用不同的 C 编译器编译的。我只是使用普通的 python(没有 anaconda)和 pipenv 来创建环境。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-15
      • 2021-09-29
      相关资源
      最近更新 更多