Skip to content

pickle780/MY_Digitdecter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

效果展示:

使用

准备好requirements.txt的环境后
在anaconda promote下,进入本文件夹
输入
pyinstaller test_mnist.spec --upx-dir=".\upx-4.0.2-win64"
其中

    ".\upx-4.0.2-win64"

这个是upx的路径
这里有一个细节,是在test_mnist.spec这个文件中有这么一行

    upx_exclude=['_pywrap_tensorflow_internal.pyd']

这个upx是不能压缩此pyd的,程序会发生问题,这个pyd来自于tensorflow安装产生的文件
其他的细节:

    upx_args = ['--best']			#采用最大压缩,节约最多空间  
    console=False				#因为是gui程序,所以不需要控制台  
    sys.setrecursionlimit(sys.getrecursionlimit() * 5)  
    block_cipher = None			#这个是我自己加的,因为pyinstaller最大递归上限不够,所以得自己括,不然程序做不出来  

About

for the first time to load on my project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages