[英]PyInstaller with multiple python files
I would like to make a program x.py
into an executable(.exe) with Pyinstaller
. 我想提出一个程序x.py
成可执行文件(.exe)与Pyinstaller
。 I am able to do this just fine when x.py
does not depend on any user scripts with: 当x.py
不依赖于以下任何用户脚本时,我能够做到这一点:
python pyinstaller.py -w x.py
How can I make this work when I am importing another script I have written, y.py
, into x.py
? 当我将我编写的另一个脚本y.py
导入x.py
时,该如何工作? I have tried using -p DIR
to specify the path to y.py
like so: 我试过使用-p DIR
来指定y.py
的路径, y.py
所示:
python pyinstaller.py -p \projectfolder -w x.py
But that did not solve the issue. 但这并不能解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.