且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

导入 scipy 或 scipy.signal 时 Pyinstaller --onefile 警告 pyconfig.h

更新时间:2023-02-26 16:59:31

您可以通过在 a=Analysis 之后添加这些行来破解规范文件以删除第二个实例:

You can hack the spec file to remove the second instance by adding these lines after a=Analysis:

for d in a.datas:
    if 'pyconfig' in d[0]: 
        a.datas.remove(d)
        break