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

后端 未结 5 1150
梦毁少年i
梦毁少年i 2020-12-01 05:23

This is very simple to recreate. If my script foo.py is:

import scipy

Then run:

python pyinstaller.py --onefile foo.py
         


        
5条回答
  •  悲哀的现实
    2020-12-01 06:09

    The answer by wtobia@ worked for me. See https://github.com/pyinstaller/pyinstaller/issues/783

    1. Go to C:\Python27\Lib\site-packages\PyInstaller\build.py
    2. Find the def append(self, tpl): function.
    3. Change if tpl[2] == "BINARY": to if tpl[2] in ["BINARY", "DATA"]:

提交回复
热议问题