使用 pyinstaller 找不到 .exe 文件的输出文件夹 [英] Cannot find output folder for .exe file using pyinstaller

查看:60
本文介绍了使用 pyinstaller 找不到 .exe 文件的输出文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 python 完全陌生,正在尝试使用 pyinstaller 为 python 创建应用程序(或 .exe)文件.我运行了命令 pyinstaller -[DIRECTORY].py 并将其保存到输出目录C:\Windows\System32\Dist\Foo",但是当我尝试定位该目录时,它似乎不存在(Dist).注意:我正在尝试在 Python 3.5 中将 .py 文件转换为 .exe 文件感谢您的帮助:)

I am completely new to python and trying to create an application (or .exe) file for python using pyinstaller. I ran the command pyinstaller -[DIRECTORY].py and it saved it to an output directory "C:\Windows\System32\Dist\Foo", however when i tried to locate the directory it did not seem to exist (Dist). NOTE: i'm trying to convert a .py file to .exe file in Python 3.5 Thanks for any help :)

推荐答案

如果您将命令目录设置为 .py 脚本位置并运行 pyinstaller yourscript.py,它将在与您的脚本相同的位置生成文件夹.名为 dist/ 的文件夹将包含 .exe 文件.

If you set your command directory to the .py script location and run pyinstaller yourscript.py, it will generate folders in the same location as your script. The folder named dist/ will contain the .exe file.

这篇关于使用 pyinstaller 找不到 .exe 文件的输出文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆