Rate This Document
Findability
Accuracy
Completeness
Readability

Obtaining the Source Code

Obtain the ONNX Runtime source code file from the ONNX Runtime official website.

  1. Go to the /path/to/ONNX_Runtime directory.
    1
    cd /path/to/ONNX_Runtime
    
  2. 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"
    
  3. 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
  4. Go to the /path/to/ONNX_Runtime/onnxruntime directory.
    cd /path/to/ONNX_Runtime/onnxruntime
  5. Install Python dependencies.
    1
    pip 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/