栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Ubuntu下学习odoo

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Ubuntu下学习odoo

跟着Leo-Bian学习:

1、Ubuntu系统内置了Python3

1.1、安装pip

sudo apt-get install python3-pip

1.2安装Python虚拟环境(虚拟环境有助于不同项目环境隔离)

#在Ubuntu中创建虚拟环境是需要virtualenv的,所以在创建虚拟环境之前还是要先安装virtualenv

sudo apt-get install python3-virtualenv

#当前目录下或者切换到你想创建虚拟环境的文件夹输入命令“virtualenv venv”,其中venv是虚拟环境的名字

virtualenv venv

#输入命令“source activate”,方可激活虚拟环境,此时demo已经被括号括起来了

source ./venv/bin/activate

 

 2 安装Postgresql数据库

地址:https://www.postgresql.org/download/linux/ubuntu/https://www.postgresql.org/download/linux/ubuntu/

# Create the file repository configuration:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

# import the repository signing key:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

# Update the package lists:
sudo apt-get update

# Install the latest version of PostgreSQL.
# If you want a specific version, use 'postgresql-12' or similar instead of 'postgresql':
sudo apt-get -y install postgresql

 

 

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/752003.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号