因为,本身电脑已经安装odoo8,9,10等odoo的版本,当时,没有考虑是直接是统一的环境很配置。

现在,在odoo11的环境下,需要Python 3的语言环境可以很好地支持odoo11的功能,所以在网上查到了现在比较火的创建虚拟环境的安装工具 pipenv,用它可以很好地隔离各个项目环境,为每一个项目都提供单独的运行环境。

安装步骤:

一、 安装 Python 3.6.4,配置环境变量:

地址:https://www.python.org/downloads/

二、下载odoo12的源码包:

https://github.com/odoo/odoo

三、安装pipenv:

1、首先使用pip安装Pipenv及其依赖项:

pip install pipenv

2、将目录更改为包含你的Python项目的文件夹:

C:\Users\Administrator>f:

F:\>cd odoo2018_11

3、 在Python项目的文件夹下,指定pipenv 要安装odoo12的Python虚拟环境,并启动Pipenv

F:\odoo2018_11>pipenv --python "D:\Python 3.6.4\Python 3.6.4\python.exe"

F:\odoo2018_11>pipenv install

4、在Python编译器中加载虚拟环境并安装依赖包:

四、odoo12启动过程中遇到的问题,及解决办法:

1、ImportError: No module named ‘win32service’

pipenv install pypiwin32

2、ImportError: No module named ‘PIL’

pipenv install Pillow

3、No module named 'ForkingMixIn'

将Werkzeug升级到0.11.15

pipenv install Werkzeug==0.11.15

4、ModuleNotFoundError: No module named 'reportlab'

pipenv install reportlab

5、psycopg2.OperationalError: fe_sendauth: no password supplied

在setup目录下 新建odoo.conf 文件

6、window 安装 odoo12 报错 ValueError: embedded null byte

在D:\Python 3.6.4\Python 3.6.4\Lib\_strptime.py下,添加代码:

locale.setlocale(locale.LC_ALL, 'en')
 

7、更新试用ODOO12最新版本的,网页打开不正常寻求帮助。

Could not execute command 'sassc'This error occured while compiling the bundle 'web.assets_common' containing:

问题日志报错:

Style error

The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.

Could not execute command 'sassc'This error occured while compiling the bundle
'web.assets_common' containing:

- /web/static/lib/bootstrap/scss/bootstrap/_mixins.scss

- /web/static/src/scss/utils.scss

- /web/static/src/scss/primary_variables.scss

- /web_editor/static/src/scss/web_editor.variables.scss

- /web/static/src/scss/secondary_variables.scss

- /web/static/lib/bootstrap/scss/bootstrap/_variables.scss

- /web/static/lib/bootstrap-datetimepicker/src/scss/_bootstrap-datetimepicker.scss

- /web/static/src/scss/fonts.scss

- /web/static/src/scss/ui.scss

- /web/static/src/scss/ui_extra.scss

- /web/static/src/scss/navbar.scss

- /web/static/src/scss/mimetypes.scss

- /web/static/src/scss/modal.scss

- /web/static/src/scss/animation.scss

- /web/static/src/scss/rainbow.scss

- /web/static/src/scss/datepicker.scss

- /web_tour/static/src/scss/tip.scss

- /web_tour/static/src/scss/keyframes.scss

解决方法:

给odoo应用安装sassc的依赖库,命令:pip install libsass

Win 10 下Pipenv源码安装 odoo12的更多相关文章

  1. RedHat7下PostGIS源码安装

    本文介绍在RedHat7环境下安装使用PostGIS的流程. 1. PostgreSQL 1.1 yum安装PostgreSQL 这个比较简单,直接使用yum安装即可. $ sudo yum inst ...

  2. debian下如何源码安装tmux

    一.源码安装ncurses库 1.1 获取源码 wget https://invisible-island.net/datafiles/release/ncurses.tar.gz tar xvf n ...

  3. Cenos(6.6/7.1)下从源码安装Python+Django+uwsgi+nginx到写nginx的环境部署(一)

    梳理下这几个的关系: centos是redhat的社区版操作系统. Python2.7.5是开发语言(centos6.5下自带的python是2.6.6版本,所以需要源码更新,而centos7.1下面 ...

  4. centos下kong源码安装

    参考资料: https://docs.konghq.com/install/source/ 环境准备:操作系统 centeros7.3 1 :openssl和pcre一般系统自带,如果没有可自己安装  ...

  5. Linux(CentOS或RadHat)下MySQL源码安装

    安装环境: CentOS6.3 64位 软件: Mysql-5.6 所需包: gcc/g++ :MySQL 5.6开始,需要使用g++进行编译.cmake  :MySQL 5.5开始,使用cmake进 ...

  6. centos6下从源码安装setuptools和pip

    1. 下载setuptools及pip的源码包 setuptools与pip都是python的模块 setuptools源码包: https://pypi.python.org/pypi/setupt ...

  7. 源码安装 odoo12 -- 问题记录

    odoo12启动过程中遇到的问题,及解决办法:1.ImportError: No module named ‘win32service’pipenv install pypiwin32 2.Impor ...

  8. linux下如何源码安装expect

    1.作用 自动交互.比如如果用ssh登陆服务器,每次都输入密码,然而你觉得麻烦,那你就可以使用expect来做自动交互,这样的话就不用每次都输入密码 2.依赖 依赖tcl 3.获取源码 wget ht ...

  9. Windows下sklearn源码安装

    简介 在Windows下编译sklearn源码,主要注意二点: 编译环境的搭建 编译顺序 编译环境的搭建 如果环境没有搭建好,最常见的报错,就是"error: Unable to find ...

随机推荐

  1. config file language All In One

    config file language All In One YAML YAML Ain't Markup Language .yaml / .yml https://yaml.org/ https ...

  2. fibonacci number & fibonacci sequence

    fibonacci number & fibonacci sequence https://www.mathsisfun.com/numbers/fibonacci-sequence.html ...

  3. JavaScript var, let, const difference All In One

    JavaScript var, let, const difference All In One js var, let, const 区别 All In One 是否存在 hoisting var ...

  4. Free Video Player All In One

    Free Video Player All In One VLC media player https://github.com/videolan/vlc VideoLAN https://www.v ...

  5. queueMicrotask & EventLoop & macrotask & microtask

    queueMicrotask https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/queueMicro ...

  6. BPMN 2.0

    BPMN 2.0 Business Process Model and Notation 业务流程模型和符号 https://www.omg.org/spec/BPMN/2.0.2/ bpmn-js ...

  7. Base 64 & URL & blob & FileReader & createObjectURL

    Base 64 & URL & blob & FileReader & createObjectURL /** * let blob = item.getAsFile( ...

  8. WebView & iframe

    WebView & iframe https://developer.android.com/reference/android/webkit/WebView.html Web-based c ...

  9. 扫码登录 & 实现原理

    扫码登录 & 实现原理 二维码扫描登录是什么原理? https://time.geekbang.org/dailylesson/detail/100044032 xgqfrms 2012-20 ...

  10. js {}与class属性描述符的区别

    let data = { name: "ajanuw", change() { this.name = "Ajanuw"; }, get message() { ...