简体   繁体   English

pyinstaller 将 .exe 文件移动到桌面

[英]pyinstaller move .exe file to Desktop

I made GUI application with PyQt and wrapped it up with pyinstaller.我用 PyQt 制作了 GUI 应用程序,并用 pyinstaller 包装它。 As you know, make it for onefile (sole exe file) is quite slow.如您所知,为 onefile(唯一的 exe 文件)制作它非常慢。

So, what I want to do is wrap it by using pyinstaller but not in onefile, but i still don't want to execute the exe file in the folder.所以,我想要做的是使用 pyinstaller 包装它而不是在 onefile 中,但我仍然不想执行文件夹中的 exe 文件。 I want to move the exe file to desktop directory so I can use it like onefile.我想将 exe 文件移动到桌面目录,以便我可以像使用 onefile 一样使用它。 I tried it but it says there is no .dll on desktop directory.我试过了,但它说桌面目录上没有 .dll。

I assume that there is quite simple solution.我认为有一个非常简单的解决方案。 How can I solve this problem?我怎么解决这个问题?

Keep the file in the folder and create a shortcut on the desktop instead.将文件保留在文件夹中,并在桌面上创建快捷方式。 You can have also shortcuts in the Start menu for example or pin the exe (create shortcut) in TaskBar.例如,您还可以在“开始”菜单中设置快捷方式,或者在任务栏中固定 exe(创建快捷方式)。 If you are going to distribute it a simple installer can automate the creation of the said shortcuts.如果您要分发它,一个简单的安装程序可以自动创建上述快捷方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM