问题描述
该安装的我都按照了,但是一直报已成功加载 site-packages DLL 路径: D:\anaconda3\envs\k230\Lib\site-packages
❌ 依然报错,请复制新错误: DLL load failed while importing _nncase: 找不到指定的模块。
D:\Desktop\seam\pythonProject\test_yolo11\detect\to_kmodel.py:54: DeprecationWarning: mapping.TENSOR_TYPE_TO_NP_TYPE is now deprecated and will be removed in a future release.To silence this warning, please use helper.tensor_dtype_to_np_dtype instead.
input_dict['dtype'] = onnx.mapping.TENSOR_TYPE_TO_NP_TYPE[onnx_type.elem_type]
WARNING: The argument input_shapes is deprecated. Please use
overwrite_input_shapes and/or test_input_shapes instead. An error will be
raised in the future.
Traceback (most recent call last):
File "D:\Desktop\seam\pythonProject\test_yolo11\detect\to_kmodel.py", line 211, in
main()
File "D:\Desktop\seam\pythonProject\test_yolo11\detect\to_kmodel.py", line 127, in main
compile_options = nncase.CompileOptions()
NameError: name 'nncase' is not defined
复现步骤
球球了 救命