pyinstall打包生成的exe文件执行时报错 no module named sklearn.neighbors_typedefs 解决方案 删除原来的dist、build 文件、 spec文件,在编译的时候加上: python pyinstaller.py -F -c xxx.py --hidden-import sklearn.neighbors.typedefs 比如: python pyinstaller.py -F device_data_collect.py -p src --hidden-