import onnxruntime
报错ImportError: Microsoft Visual C++ Redistributable for Visual Studio 2019 not installed on the machine.文章来源:https://www.toymoban.com/news/detail-479773.html
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文章来源地址https://www.toymoban.com/news/detail-479773.html
到了这里,关于paddle中import onnxruntime报错缺失Microsoft Visual C++ Redistributable for Visual Studio 2019 not install的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!