콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
37300 화면

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

아바타
취소
관련 게시물 답글 화면 활동
2
12월 24
6549
2
11월 24
26838
2
5월 24
6391
3
3월 24
5742
0
3월 24
876