xun-xh / yolov5-onnx-pyqt-exe

yolo模型使用cv2推理并使用qt5添加GUI后打包部署。pt模型转onnx模型;opencv.dnn完成推理;pyqt实现可视界面;打包为exe方便移植
100 stars 17 forks source link

打包问题 #10

Open thisiszhubq opened 1 year ago

thisiszhubq commented 1 year ago

打包提示如下: FATAL: Error, usable static libpython is not found for this Python installation. You might be missing required '-dev' packages. Disable with --static-libpython=no" if you don't want to install it. Traceback (most recent call last): File "E:\Yolo\test2\yolov5-onnx-pyqt-exe-master\build.py", line 44, in movefile(exe_path) File "E:\Yolo\test2\yolov5-onnx-pyqt-exe-master\build.py", line 36, in movefile shutil.copy(src_path, os.path.join(dst_path, os.path.basename(src_path))) File "D:\Anaconda3\envs\Yolo_test\lib\shutil.py", line 427, in copy copyfile(src, dst, follow_symlinks=follow_symlinks) File "D:\Anaconda3\envs\Yolo_test\lib\shutil.py", line 264, in copyfile with open(src, 'rb') as fsrc: FileNotFoundError: [Errno 2] No such file or directory: 'E:\Yolo\test2\yolov5-onnx-pyqt-exe-master\build_file\debug\Yolo2onnxDetectProjectDemo.dist\Yolo2onnxDetectProjectDemo.exe'

xun-xh commented 1 year ago

不要用conda环境

AllenYang00000 commented 7 months ago

你好,请问这个问题解决了吗?我也遇到了同样的问题

AllenYang00000 commented 7 months ago

你好,请问这个问题解决了吗?我也遇到了同样的问题

我解决了这个问题。原因是缺少python的核心库libpython。conda install libpython可以解决这个问题。

Homecoming48 commented 6 months ago

@AllenYang00000 您好,上述这个问题我还是没有解决,是什么原因呢,已经按照您的方法conda install libpython,但是还是存在上述问题