How to install PIP in Odoo's requirements.txt file

1

I want to install Odoo on a ubuntu 14.04 server. However, to work with Brazilian law, you must install some pip dependencies for the modules:

pip dependencies for modules:

Babel==1.3
Jinja2==2.7.3
Mako==1.0.1
MarkupSafe==0.23
Pillow==2.7.0
Python-Chart==1.39
PyYAML==3.11
Werkzeug==0.9.6
argparse==1.2.1
decorator==3.4.0
docutils==0.12
feedparser==5.1.3
gdata==2.0.18
gevent==1.0.2
greenlet==0.4.7
jcconv==0.2.3
lxml==3.4.1
mock==1.0.1
ofxparse==0.16
passlib==1.6.2
psutil==2.2.0
psycogreen==1.0
psycopg2==2.5.4
pyPdf==1.13
pydot==1.0.2
pyparsing==2.0.3
pyserial==2.7
python-dateutil==2.4.0
python-ldap==2.4.19
python-openid==2.2.5
pytz==2014.10
pyusb==1.0.0b2
qrcode==5.1
reportlab==3.1.44
requests==2.6.0
six==1.9.0
suds-jurko==0.6
vobject==0.6.6
wsgiref==0.1.2
XlsxWriter==0.7.7
xlwt==0.7.5
openpyxl==2.4.0-b1
boto==2.38.0
odoorpc
suds_requests
http://labs.libre-entreprise.org/frs/download.php/897/pyxmlsec-0.3.1.tar.gz
plotly==1.13.0
pandas==0.19.2
relatorio==0.6.4
xlrd==1.0.0
urllib3==1.22
pyopenssl==17.2.0

Odoo has in its folder the 'requirements.txt', the correct one is to enter all these requirements above and then enter the commands:

sudo apt-get install -y --no-install-recommends $(grep -v '^#' apt-requirements)

sudo pip install --upgrade pip

sudo pip install -r pip-requirements
  • Would that be just that?

I do not have any knowledge with phyton .

    
asked by anonymous 01.12.2017 / 04:38

1 answer

0

On the TrustCode page on Github you have a repository with an installation tutorial from Odoo with Trustcode applications for the implementation of Brazilian accounting and tax rules. In the same directory you also have a script for automatic installation .

In any case, if you do not use the Trustcode script, just get the requirements.txt file you mentioned and add the dependencies to the Brazilian location maintained by trustcode.

pytrustnfe
python-boleto
python-cnab

Save the file and run the command you mentioned:

pip install -r pip-requirements
    
03.01.2018 / 05:42