使用pyzbar时踩的坑
近期在PM项目中增加扫描二维码功能,在开发期间(开发环境:Windows 11 23H2)没有遇到什么问题,结果打包并在测试环境(Windows 10 1809)运行时,发现怎么都无法启动,经过打印提示发现出现了下面的这个报错提示
Text Only
FileNotFoundError: Could not find module '你的路径\Python\Python38\site-packages\pyzbar\libzbar-64.dll' (or one of its dependencies). Try using the full path with constructor syntax
后来参考了pyinstaller打包项目报错总结并经过了多次排查,一开始还以为又是nutika与这个模块不兼容导致的,最后发现是测试环境中缺少VC++2013,安装完VC++2013就没有问题了
( ′ 3`) sigh~ 什么时候能愉快的打包python项目呢