【问题标题】:Python 3.7 supports which swig version?Python 3.7 支持哪个 swig 版本?
【发布时间】:2021-05-19 23:33:53
【问题描述】:

我正在使用 Swig 4.0.2 并同时使用 python 版本 3.7 和 3.4,其中 swig 4.0.2 在 python 3.7 上运行但在 python 3.4 上运行,我可以知道 swig 4.0.2 支持哪个版本的 python 或 python 3.7而python 3.4支持哪个版本的swig? swig版本同时支持python3.4和最新版本?

对于带有 swig 版本 4.0.2 的 python 3.4,我得到 "AttributeError: 'module' object has no attribute 'Application_swiginit'" 但, 它适用于 python 3.7 上的 swig 4.0.2

【问题讨论】:

  • Python 3.4 通过更改 Python C API 中的签名引入了 unicode,这是一种糟糕的方式。因此,我强烈建议不要使用 Python 3.4

标签: python c++ swig


【解决方案1】:

请参考support

SWIG 4.0.0 所需的 Python 版本现在是 2.7,只有 3.2-3.7 支持其他版本。 SWIG 4.0.1 添加 python 3.8

【讨论】:

    猜你喜欢
    • 2021-03-26
    • 2020-01-05
    • 2018-06-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-06
    • 2017-04-19
    • 2021-11-08
    相关资源
    最近更新 更多