Python requirements 生成

Python requirements 生成

1
2
3
$ pip install pigar
$ cd path/to
$ pigar # 生成

查看

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$ cat requirements.txt
# https://github.com/damnever/pigar

# index.py: 8,9
PyMySQL == 0.9.2

# index.py: 17
cmp_version == 3.0.0

# index.py: 18,19,20,21
cos_python_sdk_v5 == 1.6.1

# index.py: 15
numpy == 1.15.4

# index.py: 16
python_env == 1.0.0

# index.py: 10
redis == 2.10.6

# index.py: 6
requests == 2.18.4

安装依赖

1
$ python install -r requirements.txt
往上