Python 全栈 + AI 人工智能 + 大数据分析
  • Python 全栈 + AI 人工智能 + 大数据分析
  • Python 介绍
  • Python 安装
  • 变量
  • 运算符
  • 流程控制语句
  • 数据类型
  • 函数
  • 文件
    • 字符编码
  • 模块
  • 编码
  • 面向对象编程
  • 迭代器 & 生成器
  • 装饰器
  • 处理进程
  • 网络编程 _ 概念
  • 创建可执行文件
  • 正则表达式
  • Pycharam
  • Django
  • 数据结构
  • 全网最新可用接码打码接码平台
Powered by GitBook
On this page

Was this helpful?

创建可执行文件

Previous网络编程 _ 概念Next正则表达式

Last updated 5 years ago

Was this helpful?

  1. 首先下载PyInstaller,直接在命令行输入:pip install pyinstaller1

2.进行打包,进入需要被打包目录,输入:pyinstaller -F yourprogram.py -F 打包成一个.exe文件12

在官方的说明里看到 pyinstaller 目前并不支持python3.6

下载到本地以后解压,并将里面的“PyInstaller”文件夹复制到C:\Users\Y\AppData\Local\Programs\Python\Python36\Lib\site-packages(每个人目录不太一样)目录下,替换原来的文件夹。

https://github.com/pyinstaller/pyinstaller