【发布时间】: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