Pyinstaller automatically includes unneeded modules

后端 未结 2 1840
不思量自难忘°
不思量自难忘° 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: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

提交回复
热议问题