进入目标文件所在目录:
该命令执行完毕,当前目录下会新增3个文件:build,dist,test.spec
双击test.exe或命令行输入test.exe,正常运行则可,若报如下错误:
解决方案,打开test.spec,将”pywt._extensions._cwt”加进hiddenimports中:
命令行输入如下命令,以重新生成可执行文件,OK.
参考网址:
http://www.php.cn/python-tutorials-391909.html
https://blog.csdn.net/zyc121561/article/details/79562935
https://blog.csdn.net/qq_42063091/article/details/82423221