简体   繁体   English

ImportError:没有名为 werkzeug.utils 的模块

[英]ImportError: No module named werkzeug.utils

I have downloaded odoo9 source code from https://www.github.com/odoo/odoo --depth 1 --branch 9.0 --single-branch.我已经从https://www.github.com/odoo/odoo --depth 1 --branch 9.0 --single-branch. and started the odoo server but i see "ImportError: No module named werkzeug.utils" error.并启动了 odoo 服务器,但我看到“ImportError:没有名为 werkzeug.utils 的模块”错误。

I tried installing with sudo apt-get install -y python3-werkzeug and could see it is installed successfully.我尝试使用sudo apt-get install -y python3-werkzeug ,可以看到它安装成功。

Again when I run the server I still see the same import issue.同样,当我运行服务器时,我仍然看到相同的导入问题。 how could I fix this import errors when I already installed them.当我已经安装了这些导入错误时,如何解决它们。

Odoo 9.0 is no longer supported since long ago, and it only works with Python 2, so you'd have to install python2-werkzeug instead (if available).很久以前就不再支持 Odoo 9.0,它仅适用于 Python 2,因此您必须改为安装python2-werkzeug (如果可用)。

Only Odoo 11.0 and newer run under Python 3.只有 Odoo 11.0 和更新版本在 Python 3 下运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM