Reducing size of pyinstaller exe

前端 未结 4 1291
天涯浪人
天涯浪人 2020-11-29 23:21

I have a simple pandas pyinstaller exe which is over 40MB.

My exe example:

import collections
import csv
import selenium
import pandas

print(\'hi\')         


        
4条回答
  •  一生所求
    2020-11-29 23:49

    try setting up your environment with a virtualenv, and install in there only the required libraries

    some details on working with virtual env are here: https://virtualenv.pypa.io/en/stable/

提交回复
热议问题