安装odoo要求

时间:2020-05-31 10:45:56

标签: python-3.x odoo python-ldap

我正在尝试学习odoo,但是当我尝试使用命令sudo pip install -r requirements.txt从require.txt文件安装需求时,出现以下错误:

Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7VpR4f/python-ldap/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-rosrtv-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-7VpR4f/python-ldap/

所以请问有人可以帮我吗?!

1 个答案:

答案 0 :(得分:0)

hossam aboouf

使用Odoo安装python3

sudo apt-get install python3-pip
sudo pip3 install -r requirements.txt
sudo apt install python3-setuptools
sudo apt install python3-dev

如果您面临除执行此cmd以外的任何其他库软件包:

sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev