Odoo10 macOS开发环境配置

  1. 执行 xcode-select --install ,如果已安装请忽略
  2. 下载odoo10,执行 git clone https://www.github.com/odoo/odoo --depth 1 --branch 10.0 --single-branch odoo10
    1. 速度慢使用镜像: git clone https://gitee.com/mirrors/odoo.git --depth 1 --branch 10.0 --single-branch odoo10
  3. 安装pip
    1. curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
    2. python get-pip.py
    3. 需要在.bash_profile.zprofile添加export PATH=~/Library/Python/2.7/bin:${PATH}
    4. pip镜像使用,执行pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
      1. 镜像说明: https://mirrors.tuna.tsinghua.edu.cn/help/pypi/
Read more   2023/05/12 posted in  Python 后端

Odoo10 macOS开发环境配置

  1. 执行 xcode-select --install ,如果已安装请忽略
  2. 下载odoo10,执行 git clone https://www.github.com/odoo/odoo --depth 1 --branch 10.0 --single-branch odoo10
    1. 速度慢使用镜像: git clone https://gitee.com/mirrors/odoo.git --depth 1 --branch 10.0 --single-branch odoo10
  3. 安装pip
    1. curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
    2. python get-pip.py
    3. 需要在.bash_profile.zprofile添加export PATH=~/Library/Python/2.7/bin:${PATH}
    4. pip镜像使用,执行pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
      1. 镜像说明: https://mirrors.tuna.tsinghua.edu.cn/help/pypi/
Read more   2023/05/12 posted in  Python 后端

sourcetree big sur Icon Toolbar placement

2023/05/12 posted in  Python

gitstats代码统计

brew install gnuplot

git clone https://github.com/hoxu/gitstats.git

python gitstats/gitstats "git路径" "git路径" "生成路径"

如: python gitstats/gitstats -c project_name="name" -c start_date=2017-10-1 "git/code1" "git/code2" out

统计git/code1,git/code2代码,时间从2017-10-1号开始,项目名为name,输出至out目录

// 一些参数:
{
	'max_domains': 10,
	'max_ext_length': 10,
	'style': 'gitstats.css',
	'max_authors': 20,
	'authors_top': 5,
	'commit_begin': '',
	'commit_end': 'HEAD',
	'linear_linestats': 1,
	'project_name': '',
	'processes': 8,
	'start_date': '注意格式'
}
2023/05/12 posted in  Python

用Python写爬虫

##目标

爬取美图天空的图片,并自动下载至本地

##环境

Python3.4+BeautifulSoup

Read more   2023/05/12 posted in  Python

Mac自带Python升级及pip安装

Read more   2023/05/12 posted in  Python

Odoo10 macOS开发环境配置

  1. 执行 xcode-select --install ,如果已安装请忽略
  2. 下载odoo10,执行 git clone https://www.github.com/odoo/odoo --depth 1 --branch 10.0 --single-branch odoo10
    1. 速度慢使用镜像: git clone https://gitee.com/mirrors/odoo.git --depth 1 --branch 10.0 --single-branch odoo10
  3. 安装pip
    1. curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
    2. python get-pip.py
    3. 需要在.bash_profile.zprofile添加export PATH=~/Library/Python/2.7/bin:${PATH}
    4. pip镜像使用,执行pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
      1. 镜像说明: https://mirrors.tuna.tsinghua.edu.cn/help/pypi/
Read more   2021/12/10 posted in  Python 后端

sourcetree big sur Icon Toolbar placement

2021/05/06 posted in  Python

gitstats代码统计

brew install gnuplot

git clone https://github.com/hoxu/gitstats.git

python gitstats/gitstats "git路径" "git路径" "生成路径"

如: python gitstats/gitstats -c project_name="name" -c start_date=2017-10-1 "git/code1" "git/code2" out

统计git/code1,git/code2代码,时间从2017-10-1号开始,项目名为name,输出至out目录

// 一些参数:
{
	'max_domains': 10,
	'max_ext_length': 10,
	'style': 'gitstats.css',
	'max_authors': 20,
	'authors_top': 5,
	'commit_begin': '',
	'commit_end': 'HEAD',
	'linear_linestats': 1,
	'project_name': '',
	'processes': 8,
	'start_date': '注意格式'
}
2017/11/09 posted in  Python