Skip to content

Python开发 之 Python3打包(windows/linux)详解。讲述如何在windows和linux上如何打包,单个文件、多个文件、多级目录、图标设置等

Notifications You must be signed in to change notification settings

ShaShiDiZhuanLan/Demo_Install_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1、Python语言的应用 之 Demo_Install_Python

讲述如何在windows和linux上如何打包,单个文件、多个文件、多级目录、图标设置等

2、更新信息

开发者:沙振宇(沙师弟专栏)
创建时间:2019-1-20
CSDN博客名称:Python开发 之 Python3打包(windows/linux)详解
CSDN博客地址:https://shazhenyu.blog.csdn.net/article/details/104054250

3、环境

Python版本:3.6.8
Windows版本:Windows 10 家庭中文版 64-bit (10.0, Build 18362) (18362.19h1_release.190318-1202)
Linux版本:centos7.4
打包工具:https://pypi.org/project/PyInstaller/

4、pyinstaller打包工具

pyinstaller -F *.py -n test -i test.ico
常用可选项及说明:
-F:打包后只生成单个exe格式文件;
-D:默认选项,创建一个目录,包含exe文件以及大量依赖文件;
-n:可选的项目(产生的spec的)名字.如果省略,第一个脚本的主文件名将作为spec的名字
-w:不使用控制台;
-p:添加搜索路径,让其找到对应的库;
-i:改变生成程序的icon图标。

About

Python开发 之 Python3打包(windows/linux)详解。讲述如何在windows和linux上如何打包,单个文件、多个文件、多级目录、图标设置等

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages