Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4 Відповіді
37364 Переглядів

I have to install this module: https://www.odoo.com/apps/modules/10.0/l10n_it_fiscalcode/. It depends on https://pypi.python.org/pypi/codicefiscale. 

How can I install this Python library on Odoo 10 on Windows? I cannot find the Python runtime necessary to install it.

Thanks.

Аватар
Відмінити
Найкраща відповідь
To install python libraries in a windows installation we must do the following:

1.- run CMD in administrator mode
2.- we execute the following code

"C:\Program Files (x86)\Odoo 13.0\python\Scripts\pip3.exe" install _PIP3LIBNAME_

Where: ROUTE_SCRIPT_SEGUN_VERSION install _PYTHONLIBNAME_
Аватар
Відмінити
Найкраща відповідь

The solution is: 

1. Download the code codicefiscale, (extract folder if needed).
2. Copy the folder in your server folder, normally C:\Program Files (x86)\Odoo 10.0\server

3. Restart your Odoo Service.

4. Reinstall you app.

Аватар
Відмінити
Автор Найкраща відповідь

@Sehrish if I open a command prompt and try to execute 'pip' command, this is the response:

'pip' is not recognized as an internal or external command

I cannot find where Python is installed with Odoo 10 on Windows. Odoo 11 has a folder with python, and in this case is simple to install it. With Odoo 10 there is no python executable.

Аватар
Відмінити

1) If you have installed Python 3.4 or later, pip is included with Python and should already be working on your system.

2) If you are running a version below Python 3.4 or if pip was not installed with Python 3.4 for some reason, then you'd probably use pip's official installation script get-pip.py. The pip installer now grabs setuptools for you, and works regardless of architecture (32-bit or 64-bit).

To install or upgrade pip, securely download get-pip.py.

Then run the following (which may require administrator access):

>>python get-pip.py

Автор

Sorry, but the problem is that with Odoo 10 on windows there is no python installed, I can see python dlls but no executable of python. Only executable under Odoo installation are:

./server/odoo-bin.exe

./server/w9xpopen.exe

./service/w9xpopen.exe

./service/win32_service.exe

./thirdparty/bin/node.exe

./thirdparty/wkhtmltopdf.exe

./Uninstall.exe

Автор

It seems that Odoo 10 has been packaged using Py2exe, a tool that gives the possibility to deploy application developed in Python. For this reason python.exe is not avaliable, it is embedded in some way in odoo-bin.exe. If my hypothesis is correct, how add a library with such installation?

Найкраща відповідь

1- Open command prompt using administrator

2- Run one of the following command

Command 1

pip install python-codicefiscale

Command 2

pip install https://pypi.python.org/packages/2.7/c/codicefiscale/codicefiscale-0.9-py2.7.egg

Hope I helped you.

Thanks

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
груд. 24
6659
2
лист. 24
26906
2
трав. 24
6453
3
бер. 24
5821
0
бер. 24
922