我正在尝试学习odoo
但是当我尝试使用命令从 require.txt 文件中安装需求时sudo pip install -r requirements.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('rn', '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/
所以请有人帮我吗?!
Hossam Aboouf
带python3
的安装Odoo
:
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