Pyinstaller –onefile warning pyconfig.h when importing scipy or scipy.signal

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

Leave a Comment