当我尝试安装 ifxpy 库时收到此错误。我该如何解决?
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
<string>:175: SyntaxWarning: invalid escape sequence '\l'
<string>:175: SyntaxWarning: invalid escape sequence '\l'
Detected 64-bit Python
Downloading : https://hcl-onedb.github.io/odbc/OneDB-Win64-ODBC-Driver.zip
Extracting Windows ODBC files : https://hcl-onedb.github.io/odbc/OneDB-Win64-ODBC-Driver.zip
Smart Triggers are enabled.
error in IfxPy setup command: use_2to3 is invalid.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
我尝试按照建议更新安装工具来尝试解决该问题,但我无法这样做。
ifxpy的稳定版本目前支持Python 2.7、3.4 - 3.7,但您的Python版本是3.12.2。
要使用 ifxpy,您可能必须降级到受支持的版本,也许是 python 3.7。