pyinstaller packing notes

About bale being given issue:

pyinstaller package has many pits, if the environment has been a lot of python libraries installed package will not use some of the libraries packaged into it, sometimes because these libraries are packed time error:  One way is to pack when they do not need libraries the library uninstall error , another solution is to use a more pure virtual environment, and then install the necessary libraries (which program to use the library).

Some other error issues, such as the most common iteration exceeds the limit, etc., refer to the following blog modify the generated spec file:

https://blog.csdn.net/weixin_42052836/article/details/82315118

About bale volume much of a problem:

   One way is when an import library, try not to import the entire library import ***, but the use of the import function from *** import *** need to use

   Another solution is to use a more pure virtual environment, and then install the necessary libraries (which program to use the library).

So exe file form the right package can copy and paste:

   In the packed program initially add the following code:

   import  readline

   readline.parse_and_bind("control-v:paste")   #可以进行复制粘贴

 

Published 24 original articles · won praise 30 · views 50000 +

Guess you like

Origin blog.csdn.net/yufen9987/article/details/102639889