0
点赞
收藏
分享

微信扫一扫

pyinstaller打包教程

灵魂跑者 2022-03-15 阅读 50

1. 修改国内镜像源

C:\Users\vision\pip.ini

[global]
 index-url = https://pypi.tuna.tsinghua.edu.cn/simple

2. 创建虚拟环境

pip install pipenv

pipenv shell # 创建虚拟环境

pip install openpyxl # 根据代码用到的模块,安装固定的库

pip install pyinstaller # 这个用来打包

3. 打包

在cmd中进入文件目录后:输入命令: pyinstaller -F -w hello.py

举报

相关推荐

0 条评论