Pyinstaller automatically includes unneeded modules

后端 未结 2 1816
不思量自难忘°
不思量自难忘° 2021-01-05 01:15

I am trying to create a .exe from a very simple script that I have written. The script only include glob and pandas. But pyinstaller is including matplotlib,numpy,scipy,qt4,

相关标签:
2条回答
  • 2021-01-05 01:40

    Not sure if this really counts as a solutions. But by ignoring winpython all together and using a standard installation of python that only had pip installs of pyinstaller and pandas added to it I was easily able generate a functional .exe that was 18MB. I guess it had something to do with winpython.

    0 讨论(0)
  • 2021-01-05 01:45

    Pyinstaller may have figured those dependencies from your current ones. If you're sure, use --exclude-module flag to list all the modules you want to exclude.

    http://pythonhosted.org/PyInstaller/#general-options

    0 讨论(0)
提交回复
热议问题