Obtaining the Source Code
Obtain the ONNX Runtime source code file from the ONNX Runtime official website.
- Go to the /path/to/ONNX_Runtime directory.
1cd /path/to/ONNX_Runtime
- Configure a network proxy for Git.
1 2 3
git config --global http.sslVerify false git config --global https.sslVerify false git config --global http.proxy "http://Username:Password@Proxy_IP_address:Proxy_port"
- Obtain the ONNX_Runtime source code by following instructions in Table 2.
cd /path/to/ONNX_Runtime git clone -b v1.19.2 https://github.com/microsoft/onnxruntime.git
- Go to the /path/to/ONNX_Runtime/onnxruntime directory.
cd /path/to/ONNX_Runtime/onnxruntime
- Install Python dependencies.
1pip install -r requirements.txt --user
If the following issue occurs during the installation, set a mirror repository for installation.

pip install -r requirements.txt --user -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com/pypi/simple/