paddle中import onnxruntime报错缺失Microsoft Visual C++ Redistributable for Visual Studio 2019 not install
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
更多推荐
所有评论(0)