62 words
1 minute
python 用 pyinstaller打包exe文件
1、找到venvtest文件夹
2、进入Script文件夹
3、打开cmd
4、调用activate.bat
5、输入*cd ..*返回venvtest文件夹
6、如果有新安装的库,则先输入,如pyinstaller
pip install -i https://mirrors.aliyun.com/pypi/simple pyinstaller7、输入打包代码
pyinstaller --onefile --noconsole --add-data "runs/detect/train8/weights/best.pt;runs/detect/train8/weights" main.py python 用 pyinstaller打包exe文件
https://zoewilliams.dpdns.org/posts/2025/2025-05-17-教程python-用-pyinstaller打包exe文件/