No matching distribution found for onnxruntime

使用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

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值