Cannot find output folder for .exe file using pyinstaller

妖精的绣舞 提交于 2020-03-03 07:58:13

问题


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 :)


回答1:


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.




回答2:


Could you please try easily the command:

`pyinstaller yourscript.py`

You will get your output folder anyway if everything is correct with your software/module.

Second you can have no rights into System32 folder, so you could try a different folder.

Third you might have inconsistency with the path \ or /.

Hope those three suggestions will lead you to the correct solution :-) Have a nice day.



来源:https://stackoverflow.com/questions/40991259/cannot-find-output-folder-for-exe-file-using-pyinstaller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!