-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip install onnxruntime --- No matching distribution found for onnxruntime #11037
Comments
CC @chilo-ms Does this repro on Windows or just on Mac? What is the specific version of Mac you are using? |
We don't support packages for M1 yet.
|
for now, there is a workaround for u. to install onnxruntime on Apple silicon with conda-forge conda install onnxruntime -c conda-forge |
I'm getting this error just today on Windows and Docker (alpine container) |
@troyliu0105 thanks for the solution. That is indeed works except that I have to install anconda and set a new python environmen since i use the native python environment. |
And I tried to compile the wheels for Python 3.8/3.9 (Apple Silicon), maybe u need it. and here is the command I used to compile them (Tested on Macbook M1 Pro) ./build.sh --config Release --osx_arch arm64 --osx_arch arm64 --build_wheel --enable_pybind --parallel --use_coreml --use_extensions --skip_tests --build_shared_lib onnxruntime-1.11.0-cp38-cp38-macosx_12_0_arm64.whl |
@troyliu0105 great! |
@troyliu105 - Using Conda worked for me on Mac OSX with Python 3.9, but fails on Windows with Python 3.10.
|
Same issue on Manjaro Linux 21.2.5 with Python 3.10.2.
However my docker build works and I am using public.ecr.aws/lambda/python:3.8 as base image. |
@davidatorres @venttola for now, offical pypi only has wheels for 3.7 to 3.9. If you wanna use onnxruntime with 3.10. You should compile it by yourself. |
@troyliu0105 Thanks! I should have probably discovered this by myself. Works with Python 3.9. |
We'll plan to add 3.10 soon so thank you for your input! |
Thanks, this was really helpful! |
Thank you this is very helpful..however remember to install ps: I wrote a simple process here to install in your machine and build the wheel. # clone the project locally (for example onnxruntime)
# remember to install numpy and wheel in your python environment (the package will be compiled with the python version you have installed)
# if you have pyenv be sure to use the right python version: pyenv shell 3.9.12 (for example)
pip install numpy wheel
# It's also good to have installed some brew packages if you are on mac (required for example with skl2onnx)
brew install cmake protobuf
# launch this command inside the project
./build.sh --config Release --osx_arch arm64 --osx_arch arm64 --build_wheel --enable_pybind --parallel --use_coreml --use_extensions --skip_tests --build_shared_lib
# you can find the wheel builded inside the folder: onnxruntime/build/<OperatingSystem/Release/dist
# add the wheel inside your project (copy and paste)
# if you are using poetry you can install the wheel by inserting this line in the pyproject.toml (put this on tool.poetry.dependencies)
onnxruntime = { file = "onnx/the-package-name-compiled.whl" }
# Then you can install with
poetry install
# Instead you can use directly pip
pip install the-package-name-compiled.whl If you want more informations on build you can also look the official documentation here |
Thanks for suggestions. I had to use Edit: Much later, after being given every possible hint without straight up telling me, I "discovered" that, if I didn't set up
|
Hi, any idea when M1, M2 and M3 will be supported? |
I faced the same issue and the following command worked for me: |
This worked |
Running python3 -m pip install onnxruntime ensures that onnxruntime is installed in the specific environment associated with the python3 command. maybe you were accident installing to a diff env? |
Facing the same issue here: I was using an python3.10-alpine base image for my container application.
Any comment or suggestion for next steps? |
same for me with the official python3.11-alpine image |
Seems like is because alpine linux does not support that. |
Describe the bug
Unable to install onnxruntime via pip/pip3
Urgency
Trying to get this up and running for a business project we have due in a couple weeks.
System information
To Reproduce
pip install onnxruntime
Expected behavior
Installation of runtime libraries
Screenshots
The text was updated successfully, but these errors were encountered: