If you're looking to set up Odoo 17 on a Windows 11 system with Python 3.12, you might face a few compatibility challenges with dependencies. This guide provides a custom requirements.txt tailored specifically for this configuration, along with solutions for common issues during installation.
Custom requirements.txt for Windows 11 with Python 3.12
Below is the custom requirements.txt file that ensures Odoo 17 works seamlessly on Windows 11 with Python 3.12. This file includes compatible versions of required packages and handles Windows-specific dependencies.
`# Windows 11 Compatible Requirements for Python 3.12
Babel==2.10.3
chardet==5.2.0
cryptography==42.0.8
decorator==5.1.1
docutils==0.20.1
ebaysdk==2.1.5
freezegun==1.2.1
geoip2==2.9.0
gevent==24.2.1 ; sys_platform == 'win32'
greenlet==3.0.3 ; sys_platform == 'win32'
idna==3.6
Jinja2==3.1.2
libsass==0.22.0 ; sys_platform == 'win32' # Prebuilt wheel available
lxml==5.2.1
lxml-html-clean ; python_version >= '3.12' # Required for HTML clean in Windows
MarkupSafe==2.1.5
num2words==0.5.13
ofxparse==0.21
passlib==1.7.4
Pillow==10.2.0
polib==1.1.1
psutil==5.9.8
psycopg2==2.9.9 ; sys_platform == 'win32'
pydot==1.4.2
pyopenssl==24.1.0
PyPDF2==2.12.1
pypiwin32 ; sys_platform == 'win32'
pyserial==3.5
python-dateutil==2.8.2
python-ldap==3.4.4 ; sys_platform == 'win32' # Prebuilt wheel required
python-stdnum==1.19
pytz
pyusb==1.2.1
qrcode==7.4.2
reportlab==4.1.0
requests==2.31.0
rjsmin==1.2.0
rl-renderPM==4.0.3 ; sys_platform == 'win32' # Needed by reportlab
urllib3==2.0.7
vobject==0.9.6.1
Werkzeug==3.0.1
xlrd==2.0.1
XlsxWriter==3.1.9
xlwt==1.3.0
zeep==4.2.1
`
Handling Common Installation Issues
When installing the dependencies in the requirements.txt, you might encounter the following error :
running build_ext
building '_ldap' extension
creating build\temp.win-amd64-cpython-312\Release\Modules
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DHAVE_SASL -DHAVE_TLS -DL
This error typically occurs due to missing precompiled wheels for certain dependencies, such as python-ldap. Building these dependencies from source requires additional setup, but you can bypass the issue by downloading prebuilt wheels.
Solution: Install Prebuilt Wheels
For Windows, prebuilt wheels can simplify the installation process significantly. Use the following steps to resolve the issue:
Download Prebuilt Wheel:
Go to the GitHub repository https://github.com/mymy47/python-builds-for-windows/releases.
Download the appropriate wheel file for python-ldap or any other dependency causing the issue.
Install the Wheel:
Use pip to install the wheel manually:
pip install path_to_downloaded_wheel.whl
Continue Installing Dependencies:
Once the problematic dependency is resolved, install the remaining packages:
pip install -r requirements.txt
Top comments (0)