Odoo 10 配置

Odoo 10 Configuration

我已经在 Odoo 10 中设置了配置,但仍然面临这个错误。我正在使用 docker 和日食。有什么想法吗?

Traceback (most recent call last):
  File "/home/user/Desktop/odoo-workspace/odoo10/odoo-bin", line 5, in <module>
    __import__('pkg_resources').declare_namespace('odoo.addons')
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2269, in declare_namespace
    declare_namespace(parent)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2285, in declare_namespace
    _handle_ns(packageName, path_item)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2218, in _handle_ns
    loader.load_module(packageName)
  File "<frozen importlib._bootstrap_external>", line 462, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 962, in load_module
  File "<frozen importlib._bootstrap_external>", line 787, in load_module
  File "<frozen importlib._bootstrap>", line 262, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 604, in _exec
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/user/Desktop/odoo-workspace/odoo10/odoo/__init__.py", line 57, in <module>
    import addons
ModuleNotFoundError: No module named 'addons'

已经解决。我将 python 解释器更改为 Python2.7 并安装了 pip.

为 Python 2.7 安装 pip 从 \https://bootstrap.pypa.io/pip/2.7/ :

之后我输入了这个命令,这样它就能很好地满足所有要求:

pip install -r requirements.txt