gpt4 book ai didi

Adding installed libraries via pip with pyinstaller(使用pyinstaller通过pip添加已安装的库)

转载 作者:bug小助手 更新时间:2023-10-24 22:14:11 34 4
gpt4 key购买 nike



I am using pyinstaller to package a python project, how do I add the installed libraries via pip into the executable?
Added the libraries to be included and if necessary, installed in the requirements.txt file.
Thank you in advance.

我正在使用pyinstaller打包一个python项目,如何通过pip将已安装的库添加到可执行文件中?添加了要包含的库,如有必要,请安装在Requirements.txt文件中。提前谢谢您。


I tried venv and path addition but nothing.

我尝试了venv和Path加法,但一无所获。


更多回答

can you provide a minimal reproducible example

你能提供一个最小的可重复使用的例子吗?

AFAICS pyinstaller yourfile.py should create the spec file, see the manual

AFAICS pyinstaller you file.py应该创建规范文件,请参阅手册

优秀答案推荐
更多回答

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com