Search code examples
pythoninstallationubuntu-18.04odoo-12

Odoo 12 installation fails due to python setup.py install


I am trying to install Odoo 12 in Ubuntu 18. There is an official document here:- https://www.getopenerp.com/install-odoo-12-on-ubuntu-18-04/ There are many steps. All succeed except the following:-

When I run the command as python setup.py install

it gives an error:-

root@ip-172-31-45-49:/opt/odoo/gdata-2.0.18# python setup.py install
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)
running install
running build
running build_py
running install_lib
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/gdata-2.0.18.egg-info
Writing /usr/local/lib/python2.7/dist-packages/gdata-2.0.18.egg-info

Can anybody suggest what could be wrong?


Solution

  • That you're running Python 2.7 and you need Python 3