1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
conda create -n py37 python=3.7

conda create -n py36 python=3.6

#安装其他的依赖
pip install numpy==1.21.5 (1.21.6)
# 安装onnx
# Prerequisites
# numpy >= 1.16.6
# protobuf >= 3.12.2
# typing-extensions >= 3.6.2.1
# https://onnxruntime.ai/
pip install protobuf==3.16.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install onnx==1.10.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install onnxruntime==1.11.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
# 安装opencv
pip install opencv-python==3.4.2 -i https://pypi.tuna.tsinghua.edu.cn/simple

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

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