Home > other >  Small white inquired: python code to put him into an exe file
Small white inquired: python code to put him into an exe file

Time:10-13

New small white to learning how to learn will py made an.exe file, try the online tutorials, mainly use pyinstaller, but always an error in the process of using, as follows,
Feel like missing numpy and pytz module, but he has repeatedly uninstall and install, please teach old driver!

CodePudding user response:

Already know how to do it, I put all of the packages all updated once, and then a success, but the generated EXE files are too big, should is thinking about how to reduce the size

CodePudding user response:

To build a virtual environment to package, virtual environment only install what you use package would not be so big

CodePudding user response:

Introduction of function module, the multi-purpose the from... The import... Reduce packaging function

CodePudding user response:

refer to the second floor kohane _Jun response:
to package to build a virtual environment, a virtual environment only install what you use package would not be so big
tried, but set up later can't run, don't know why

CodePudding user response:

quoted Mr 苂 reply: 3/f
introduction of function module, the multi-purpose the from... The import... Reduce packaging function
well, give it a try, but the effect is not very good

CodePudding user response:

refer to the second floor Jaryy response:
to package to build a virtual environment, a virtual environment only install what you use package would not be so big

Feel this idea is right, packaging is too big to a large extent because all packages from the system default python installation, no matter if there is any relationship with this project, were in it, the original poster can be a tan the idea what step in the wrong place, you take a look at the,

CodePudding user response:

refer to 6th floor Liu Zheng response:
Quote: refer to the second floor Jaryy response:

Packing and virtual environment to build a virtual environment to install only what you use package would not be so big

Feel this idea is right, packaging is too big to a large extent because all packages from the system default python installation, no matter if there is any relationship with this project, were in it, the original poster can be a tan the idea what step in the wrong place, you take a look at the,

Anaconda will bring a lot of packages, use the original environment of the anaconda packaging will be a lot of problems, and the generated exe

CodePudding user response:

refer to 7th floor Jaryy response:
Quote: refer to the sixth floor Liu Zheng response:

Quote: refer to the second floor Jaryy response:

Packing and virtual environment to build a virtual environment to install only what you use package would not be so big

Feel this idea is right, packaging is too big to a large extent because all packages from the system default python installation, no matter if there is any relationship with this project, were in it, the original poster can be a tan the idea what step in the wrong place, you take a look at the,

Anaconda will bring a lot of packages, use the original environment of the anaconda packaging will be a lot of problems, and the generated exe


OK, I tried before, but don't know where is out of the question, I try again T-shirt female environment to do modified
  • Related