import onnxruntime
报错ImportError: Microsoft Visual C++ Redistributable for Visual Studio 2019 not installed on the machine.

Traceback (most recent call last):
File “D:/Wanggan_Project/tensorflow/study_test/paddle_steel/file_save_load.py”, line 7, in
import onnxruntime
File “D:\Anaconda3\envs\paddle_new\lib\site-packages\onnxruntime_init_.py”, line 34, in
raise import_capi_exception
File “D:\Anaconda3\envs\paddle_new\lib\site-packages\onnxruntime_init_.py”, line 23, in
from onnxruntime.capi._pybind_state import get_all_providers, get_available_providers, get_device, set_seed,
File “D:\Anaconda3\envs\paddle_new\lib\site-packages\onnxruntime\capi_pybind_state.py”, line 19, in
raise ImportError(
ImportError: Microsoft Visual C++ Redistributable for Visual Studio 2019 not installed on the machine.
可以发现是D:\Anaconda3\envs\paddle_new\lib\site-packages\onnxruntime\capi_pybind_state.py中if not os.path.isfile(“C:\Windows\System32\vcruntime140_1.dll”):
缺失C:\Windows\System32\vcruntime140_1.dll,补全即可
下载链接https://www.66rjz.com/pcsoft/142483.html#download

GitHub 加速计划 / on / onnxruntime
13.76 K
2.79 K
下载
microsoft/onnxruntime: 是一个用于运行各种机器学习模型的开源库。适合对机器学习和深度学习有兴趣的人,特别是在开发和部署机器学习模型时需要处理各种不同框架和算子的人。特点是支持多种机器学习框架和算子,包括 TensorFlow、PyTorch、Caffe 等,具有高性能和广泛的兼容性。
最近提交(Master分支:2 个月前 )
59280095 Adds support for einsum via WebNN matmul, transpose, reshape, reducesum, identity and element-wise binary ops. 5 天前
c73a3d18 ### Description A breakdown PR of https://github.com/microsoft/onnxruntime/pull/22651 ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> 5 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐