Debian 10 Odoo 17 apt 安装 odoo

Debian 10 Odoo 17 apt 安装 odoo

我正在尝试在 Debian 10 上安装 Odoo 17。但是,它给了我invalid syntax.

  File "/usr/lib/python3/dist-packages/odoo/tools/sql.py", line 65
    def __new__(cls, code: (str | SQL) = "", /, *args, **kwargs):
                                             ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/odoo/tools/translate.py", line 1153
    res_id: ImdInfo((tmp := module_xml_name.split('.', 1))[1], model_name, res_id, tmp[0])
                         ^
SyntaxError: invalid syntax

dpkg: error processing package odoo (--configure):
 installed odoo package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 odoo
E: Sub-process /usr/bin/dpkg returned an error code (1)

我确实安装了 python3.10 并做了 update-alternatives

$ sudo update-alternatives --config python3
There is only one alternative in link group python3 (providing /usr/bin/python3): /usr/local/bin/python3.10
Nothing to configure.

$ sudo update-alternatives --config python
There is only one alternative in link group python (providing /usr/bin/python): /usr/local/bin/python3.10
Nothing to configure.

$ python -V
Python 3.10.0

$ python3 -V
Python 3.10.0

可能是什么问题呢?

相关内容