描述

Python 不同项目经常遇到需要不同版本的包,总不可能做完一个项目重新安装一个,需要找到版本共存的方法

方法出处

安装两个版本的python_python下载了两个版本怎么办_limmmy的博客-CSDN博客z

使用语法

python37 -m pip install -i https://pypi.tuna.tzsinghua.edu.cn/simple mediapipe

python37 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python

python37 -m pip install --upgrade pip

python37 -m pip install -i https://pypi.tuna.tzsinghua.edu.cn/simple opencv-contrib-python

pip3 --default-timeout=100 install pytest-html

python37的包

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
absl-py                      1.4.0
astor 0.8.1
astunparse 1.6.3
attrs 23.1.0
cachetools 4.2.4
certifi 2022.12.7
charset-normalizer 3.1.0
cycler 0.11.0
flatbuffers 23.3.3
fonttools 4.38.0
gast 0.2.2
google-auth 1.35.0
google-auth-oauthlib 0.4.6
google-pasta 0.2.0
grpcio 1.54.0
h5py 2.10.0
idna 3.4
importlib-metadata 6.6.0
keras 2.11.0
Keras-Applications 1.0.8
Keras-Preprocessing 1.1.2
kiwisolver 1.4.4
libclang 16.0.0
Markdown 3.4.3
MarkupSafe 2.1.2
matplotlib 3.5.3
mediapipe 0.9.0.1
mysql-connector-python 8.0.27
numpy 1.21.6
oauthlib 3.2.2
opencv-contrib-python 4.7.0.72
opencv-python 4.7.0.72
opt-einsum 3.3.0
packaging 23.1
Pillow 9.5.0
pip 23.1.2
protobuf 3.19.6
pyasn1 0.4.8
pyasn1-modules 0.2.8
pygame 2.3.0
PyMySQL 1.0.3
pyparsing 3.0.9
python-dateutil 2.8.2
PyYAML 6.0
requests 2.28.2
requests-oauthlib 1.3.1
rsa 4.9
scipy 1.7.3
setuptools 67.6.1
six 1.16.0
tensorboard 2.0.0
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.1
tensorflow 2.0.0
tensorflow-estimator 2.0.1
tensorflow-intel 2.11.0
tensorflow-io-gcs-filesystem 0.31.0
termcolor 2.2.0
typing_extensions 4.5.0
urllib3 1.26.15
Werkzeug 2.2.3
wheel 0.40.0
wrapt 1.15.0
zipp 3.15.0

python37模块收集

python下使用pip freeze >requirements.txt命令迁移模块_我不喜欢这个世界的博客-CSDN博客

requirement.txt

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
absl-py==1.4.0
astor==0.8.1
astunparse==1.6.3
attrs==23.1.0
cachetools==4.2.4
certifi==2022.12.7
charset-normalizer==3.1.0
cycler==0.11.0
flatbuffers==23.3.3
fonttools==4.38.0
gast==0.2.2
google-auth==1.35.0
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
grpcio==1.54.0
h5py==2.10.0
idna==3.4
importlib-metadata==6.6.0
keras==2.11.0
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.2
kiwisolver==1.4.4
libclang==16.0.0
Markdown==3.4.3
MarkupSafe==2.1.2
matplotlib==3.5.3
mediapipe==0.9.0.1
mysql-connector-python==8.0.27
numpy==1.21.6
oauthlib==3.2.2
opencv-contrib-python==4.7.0.72
opencv-python==4.7.0.72
opt-einsum==3.3.0
packaging==23.1
Pillow==9.5.0
protobuf==3.19.6
pyasn1==0.4.8
pyasn1-modules==0.2.8
pygame==2.3.0
PyMySQL==1.0.3
pyparsing==3.0.9
python-dateutil==2.8.2
PyYAML==6.0
requests==2.28.2
requests-oauthlib==1.3.1
rsa==4.9
scipy==1.7.3
six==1.16.0
tensorboard==2.0.0
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorflow==2.0.0
tensorflow-estimator==2.0.1
tensorflow-intel==2.11.0
tensorflow-io-gcs-filesystem==0.31.0
termcolor==2.2.0
typing_extensions==4.5.0
urllib3==1.26.15
Werkzeug==2.2.3
wrapt==1.15.0
zipp==3.15.0