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

后端 未结 5 1136
梦毁少年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:02

    I ran the archive_viewer.py utility (from PyInstaller) on one of my own --onefile executables that has the same error and found that pyconfig.h is included twice:

     (31374007, 6521, 21529, 1, 'x', 'include\\pyconfig.h'),
     (31380528, 6521, 21529, 1, 'x', 'Include\\pyconfig.h'),
     (31387049, 984, 2102, 1, 'x', 'pytz\\zoneinfo\\CET'),
    

    Sadly though, I don't know how to fix it.

    PyInstaller Manual link: http://www.pyinstaller.org/export/d3398dd79b68901ae1edd761f3fe0f4ff19cfb1a/project/doc/Manual.html#archiveviewer

提交回复
热议问题