看了很多帖子就是解决不了,报错显示
ERROR: Could not find a version that satisfies the requirement onnxruntime (from versions: none)
ERROR: No matching distribution found for onnxruntime
服气。
下载方式pip install onnxruntime
Python版本3.8
请运行我给的参考命令:
pip install onnxruntime -i https://pypi.tuna.tsinghua.edu.cn/simple
pip最新的吗,看看
:python -m pip install --upgrade pip
去这个网站下:https://github.com/microsoft/onnxruntime
然后手动安装
:pip install <path_to_downloaded_package>
1.确认Python版本是否正确:请确保您正在使用的Python版本是3.8,如果不是,可以尝试升级或降级Python版本。
2.确认网络连接是否正常:请确保您的计算机已连接到互联网,并且没有防火墙或代理阻止了Python包的下载和安装。
3.使用Anaconda:如果您使用Anaconda进行Python环境管理,可以尝试使用以下命令安装OnnxRuntime:
conda install -c conda-forge onnxruntime
4.手动下载OnnxRuntime包:如果上述方法都不起作用,您可以尝试从OnnxRuntime官网(https://microsoft.github.io/onnxruntime/%EF%BC%89%E6%89%8B%E5%8A%A8%E4%B8%8B%E8%BD%BD%E9%80%82%E7%94%A8%E4%BA%8EPython 3.8的OnnxRuntime包,并通过以下命令进行安装:
pip install <path_to_downloaded_wheel_file>
其中,是您下载的OnnxRuntime包的路径。
确保你是最新版本的Python,之后这样试试
pip3 install onnxruntime
用清华镜像源安装试试