10
10
- [ 三. flake8] ( #三-flake8 )
11
11
- [ 四. tox] ( #四-tox )
12
12
- [ 4.1. tox --version] ( #41-tox---version )
13
- - [ 4.2. tox --help] ( #42-tox---help )
14
- - [ 4.3. tox --help-ini] ( #43-tox---help-ini )
15
- - [ 4.4. tox --showconfig] ( #44-tox---showconfig )
16
- - [ 4.4. tox --result-json] ( #44-tox---result-json )
13
+ - [ 4.2. tox --verbose] ( #42-tox---verbose )
14
+ - [ 4.3. tox --help] ( #43-tox---help )
15
+ - [ 4.4. tox --help-ini] ( #44-tox---help-ini )
16
+ - [ 4.5. tox --showconfig] ( #45-tox---showconfig )
17
+ - [ 4.6. tox --result-json] ( #46-tox---result-json )
17
18
18
19
> 平常工作和生活当中, 需要跨系统, 跨语言, 跨环境, 好多都需要笔录的方式记忆下来(已超出个体记忆能力), 好记性不如烂笔头, 故整理后续参考;
19
20
@@ -42,13 +43,21 @@ pip3 install -e .
42
43
# pip list
43
44
pip2 list > ./Temp/txt/python2_pip2_list.txt
44
45
pip3 list > ./Temp/txt/python3_pip3_list.txt
45
- python2 -m pip2 list > ./Temp/txt/2021_python2_pip2_list.txt
46
- python3 -m pip3 list > ./Temp/txt/2021_python3_pip3_list.txt
46
+
47
+ pip2 list > ./Temp/txt/2021_python2_pip2_list.txt
48
+ pip3 list > ./Temp/txt/2021_python3_pip3_list.txt
49
+
50
+ python2 -m pip list > ./Temp/txt/2021_python2_pip2_list.txt
51
+ python3 -m pip list > ./Temp/txt/2021_python3_pip3_list.txt
47
52
# pip freeze
48
53
pip2 freeze > ./Temp/txt/python2_pip2_freeze.txt
49
54
pip3 freeze > ./Temp/txt/python3_pip3_freeze.txt
50
- python2 -m pip2 freeze > ./Temp/txt/2021_python2_pip2_freeze.txt
51
- python3 -m pip3 freeze > ./Temp/txt/2021_python3_pip3_freeze.txt
55
+
56
+ pip2 freeze > ./Temp/txt/2021_python2_pip2_freeze.txt
57
+ pip3 freeze > ./Temp/txt/2021_python3_pip3_freeze.txt
58
+
59
+ python2 -m pip freeze > ./Temp/txt/2021_python2_pip2_freeze.txt
60
+ python3 -m pip freeze > ./Temp/txt/2021_python3_pip3_freeze.txt
52
61
```
53
62
54
63
### 2.3. pip install
@@ -60,15 +69,15 @@ python3 -m pip3 freeze > ./Temp/txt/2021_python3_pip3_freeze.txt
60
69
pip2 install -r ./requirements.txt
61
70
pip3 install -r ./requirements.txt
62
71
63
- python2 -m pip2 install -r ./requirements.txt
64
- python3 -m pip3 install -r ./requirements.txt
72
+ python2 -m pip install -r ./requirements.txt
73
+ python3 -m pip install -r ./requirements.txt
65
74
66
75
# the base chain component requirements
67
76
pip2 install -r ./Temp/archives/material/requirements.txt
68
77
pip3 install -r ./Temp/archives/material/requirements.txt
69
78
70
- python2 -m pip2 install -r ./Temp/archives/material/requirements.txt
71
- python3 -m pip3 install -r ./Temp/archives/material/requirements.txt
79
+ python2 -m pip install -r ./Temp/archives/material/requirements.txt
80
+ python3 -m pip install -r ./Temp/archives/material/requirements.txt
72
81
```
73
82
74
83
#### 2.3.2. pip install xxx
@@ -95,20 +104,26 @@ flake8 --help > ./Temp/help/python3_flake8_help.txt
95
104
96
105
## 四. tox
97
106
98
- ``` bash
99
- tox --verbose
107
+ ### 4.1. tox --version
100
108
101
- python2 -m tox --verbose > ./Temp/help/python2_tox_verbose.txt
102
- python3 -m tox --verbose > ./Temp/help/python3_tox_verbose.txt
109
+ ``` bash
110
+ tox --version
103
111
```
104
112
105
- ### 4.1 . tox --version
113
+ ### 4.2 . tox --verbose
106
114
107
115
``` bash
108
- tox --version
116
+ tox --verbose
117
+ tox --verbose --parallel all
118
+ tox --verbose --parallel auto
119
+ tox --verbose --parallel 4 // 4 cpu core
120
+ tox --verbose --parallel 8 // 8 cpu core
121
+
122
+ python2 -m tox --verbose > ./Temp/help/python2_tox_verbose.txt
123
+ python3 -m tox --verbose > ./Temp/help/python3_tox_verbose.txt
109
124
```
110
125
111
- ### 4.2 . tox --help
126
+ ### 4.3 . tox --help
112
127
113
128
``` bash
114
129
tox --help
@@ -117,7 +132,7 @@ python2 -m tox --help > ./Temp/help/python2_tox_help.txt
117
132
python3 -m tox --help > ./Temp/help/python3_tox_help.txt
118
133
```
119
134
120
- ### 4.3 . tox --help-ini
135
+ ### 4.4 . tox --help-ini
121
136
122
137
``` bash
123
138
tox --help-ini
@@ -126,7 +141,7 @@ python2 -m tox --help-ini > ./Temp/help/python2_tox_help_ini.txt
126
141
python3 -m tox --help-ini > ./Temp/help/python3_tox_help_ini.txt
127
142
```
128
143
129
- ### 4.4 . tox --showconfig
144
+ ### 4.5 . tox --showconfig
130
145
131
146
``` bash
132
147
tox --showconfig
@@ -135,7 +150,7 @@ python2 -m tox --showconfig > ./Temp/help/python2_tox_show_config.txt
135
150
python3 -m tox --showconfig > ./Temp/help/python3_tox_show_config.txt
136
151
```
137
152
138
- ### 4.4 . tox --result-json
153
+ ### 4.6 . tox --result-json
139
154
140
155
``` bash
141
156
tox --result-json
0 commit comments