No matching distribution found for onnxruntime

    技术2022-07-10  129

    使用pip install onnxruntime报错:

    ERROR: Could not find a version that satisfies the requirement onnxruntime (from versions: none) ERROR: No matching distribution found for onnxruntime

    看了onnxruntime issue建议使用pip3安装

    但是当时的安装环境(python3.5)安装pip3有403的error,查看当时可以安装onnxruntime的环境要求:

    Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: onnxruntime in ./.local/lib/python3.6/site-packages (1.3.0) Requirement already satisfied: onnx>=1.2.3 in ./.local/lib/python3.6/site-packages (from onnxruntime) (1.7.0) Requirement already satisfied: numpy>=1.16.6 in ./.local/lib/python3.6/site-packages (from onnxruntime) (1.17.4) Requirement already satisfied: protobuf in ./.local/lib/python3.6/site-packages (from onnxruntime) (3.10.0) Requirement already satisfied: typing-extensions>=3.6.2.1 in /usr/local/lib/python3.6/dist-packages (from onnx>=1.2.3->onnxruntime) (3.7.4) Requirement already satisfied: six in ./.local/lib/python3.6/site-packages (from onnx>=1.2.3->onnxruntime) (1.13.0) Requirement already satisfied: setuptools in ./.local/lib/python3.6/site-packages (from protobuf->onnxruntime) (42.0.0)

    于是我就升级python版本

    sudo apt-get install software-properties-common python-software-properties sudo apt-get install software-properties-common sudo apt-add-repository http://apt.tvheadend.org/stable sudo add-apt-repository ppa:jonathonf/python-3.6 sudo apt-get update sudo apt-get install python3.6

    重新装pip3,然后再装onnxruntime ok了。。。

    ~~~~~~~~~~~~~~~~~~~~~~~~。。。。。。~~~~~~~~~~~~~~~~~~~~~~~

    更新下:onnxruntime要求python版本到3.6,只要安装好python3.6就可以了

    1、安装python3.6 sudo add-apt-repository ppa:jonathonf/python-3.6 sudo apt-get update sudo apt-get install python3.6 2、安装pip3.6 wget https://bootstrap.pypa.io/get-pip.py sudo python3.6 get-pip.py 在安装scipy时,会出现以下错误,可执行 pip3.6 install --ignore-installed scipy就可以规避了 Cannot uninstall 'scipy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall

     

    Processed: 0.011, SQL: 9