Cài đặt odoo12 trên windows 10 chạy môi trường 64bit

Nội dung

    Các bước cài đặt cũng như bản thông thường nhưng có phần thư viện phải nạp bổ sung khác 1 chút.

    tham khảo: https://github.com/guohuadeng/odoo12-x64

    Download and install Node.js LTS.

    LaunchCommand Promptas Administrator.

    • InstallLess.jsby> npm install -g less less-plugin-clean-css

    Download and installPostgreSQL, có thể dùng bản 64bit ver dưới 10 thôi.
    add PostgreSQL’sbindirectory (default:C:\Program Files\PostgreSQL\x.x\bin) to yourPATH.

    create apostgresuser with a password using thePgAdminGUI:

    • openPgAdmin4,
    • expandservernode to create a connection,
    • expandPostgreSQLnode,
    • selectObject-> Create -> Login/Group Role,
      • enter the username in theRole Namefield (e.g. odoo),
      • open theDefinitiontab and enter the password (e.g. odoo),
      • open thePrivilegestab and giveloginandcreate databaserights,
    • clicksave.

    Download and installMicrosoft Visual C++ 2015 Redistributable.
    Download and installPython3version 3.6.

    • gotoPython3installation directory (default:C:\Users\{UserName}\AppData\Local\Programs\Python\PythonXX.
    • renamepython.exetopython3.exeandpythonw.exetopythonw3.exe.
    • addPython3installation directory (default:C:\Users\{UserName}\AppData\Local\Programs\Python\PythonXX) to yourPATH.

    AfterVisual C++ 2015 Build Toolsinstallation process completes, launchCommand Promptas Administrator

    • Installpypiwin32by> python3 -m pip install pypiwin32
    • InstallPillowby> python3 -m pip install pillow
    • Installgeventby> python3 -m pip install gevent
    • Installlxmlby> python3 -m pip install lxml
    • Installpsutilby> python3 -m pip install psutil
    • Installpsycopg2by> python3 -m pip install psycopg2
    • Installpyldapby> python3 -m pip install pyldap (nếu bị lỗi hay chạy bằng whl)
    • Installreportlabby> python3 -m pip install reportlab

    Cài pyldap bị lỗi thì chạy bằng lệnhpip3 install pyldap-2.4.45-cp36-cp36m-win_amd64.whl

    Download file pyldap-2.4.45-cp36-cp36m-win_amd64.whl

    Download and install wkhtmltopdf.
    Add wkhtmltopdf’sbindirectory (default:C:\Program Files\wkhtmltopdf\bin) to yourPATH.

    LaunchCommand Prompt.
    Switch to (cd) your desiredodooinstallation directory
    cloneodoohttps://github.com/odoo/odoo/archive/12.0.zip

    Switch toodooinstallation directory and runodoousing
    $ python3 odoo-bin -w odoo -r odoo --addons-path=addons --log-level=debug_rpc

    Một vài lỗi có thể cài về version cũ trong file extra

    pip3 install -r .\requirements.txt  -i https://mirrors.aliyun.com/pypi/simple
    pip3 install .\extra\Pillow-5.4.1-cp36-cp36m-win_amd64.whl
    pip3 install .\extra\psycopg2-2.7.7-cp36-cp36m-win_amd64.whl
    pip3 install .\extra\pyldap-2.4.45-cp36-cp36m-win_amd64.whl
    pip3 install .\extra\reportlab-3.5.13-cp36-cp36m-win_amd64.whl
    pip3 install .\extra\Werkzeug-0.14.1-py2.py3-none-any.whl
    pip3 install .\extra\pywin32-224-cp36-cp36m-win_amd64.whl
    pip3 install .\extra\wandex-0.4.5-py3-none-any.whl
    pip3 install .\extra\imageio-2.5.0-py3-none-any.whl
    pip3 install .\extra\moviepy-1.0.0-py2.py3-none-any.whl
    pip3 install .\extra\psutil-5.6.1-cp36-cp36m-win_amd64.whl
    pip3 install .\extra\lxml-4.2.3-cp36-cp36m-win_amd64.whl
    pip3 install .\extra\psutil-5.6.1-cp36-cp36m-win_amd64.whl Nếu lỗi không đọc được module web thì

    pip3 uninstall jinja2

    pip3 install Jinja2==2.10.1

    pip3 install libsass==0.12.3
    
    

    Để lại một bình luận

    Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *