onnxruntime: pip install failed
Describe the bug
exlsunshine@exlsunshine:~/downloads $ pip install onnxruntime
Collecting onnxruntime
Could not find a version that satisfies the requirement onnxruntime (from versions: )
No matching distribution found for onnxruntime
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
-
ONNX Runtime installed from (source or binary):
pip install -
ONNX Runtime version:
0.1.4 -
Python version:
exlsunshine@exlsunshine:~/downloads $ python -V
Python 2.7.15rc1
exlsunshine@exlsunshine:~/downloads $ python3 -V
Python 3.6.7
- GCC/Compiler version (if compiling from source):
exlsunshine@exlsunshine:~/downloads $ gcc --version
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- CUDA/cuDNN version:
To Reproduce
pip install onnxruntime
Expected behavior
install package
Screenshots
Additional context
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 20 (6 by maintainers)
onnxruntime only supports python 3.x. If your ‘pip’ command is from python 2.x, then it won’t work. Please run:
linux nano python3.6.9 “Collecting onnxruntime Could not find a version that satisfies the requirement onnxruntime (from versions: ) No matching distribution found for onnxruntime”
I am facing the same error even with “pip3 install onnxruntime”. Any suggestions?
For python 3.11 support please see #13482
Everyone in this thread please read https://peps.python.org/pep-0425/ . onnxruntime python package includes these tag in its filenames. When pip says
It means pip tried to find an onnxruntime wheel file from https://pypi.org/project/onnxruntime/#files with specific tags, but couldn’t find it.
So, what tags it wanted? Your python version determined the “python tag”. Your operating system and CPU arch of your python executable determined the “platform tag”. So please open the link https://pypi.org/project/onnxruntime/#files , see if the file is there.
If the type of package you are looking for is not provided by us yet, please create a new issue with the information above. Then our product team will review your request and make plans, hopefully we will be able to provide it in the next onnxruntime release. You can view our plans at https://github.com/microsoft/onnxruntime/projects .
Thank you, I have figured it out,
pip3works.I am facing the same error even with “pip3 install onnxruntime”. Using Windows 10 machine(x64) with python installed version 3.10.2
It will not work for Python 3.11, it’s only until Python 3.10. I have Python 3.9 and Python 3.11, I installed the package with
pip3.9 install onnxruntime --userYou can install it with pip3.x where x is less than 11 depending on your Python version, it does not support Python 3.11 as seen here https://pypi.org/project/onnxruntime/#files mentioned by @snnnPython 3.11.2 Ditto
Python 3.11.2 Fedora 37 Workstation