Convert .py to .exe [duplicate]

一个人想着一个人 提交于 2019-12-02 21:42:38

问题


How to convert python Python1.py created in Visual Studio 2015 to Python1.exe, with PyInstaller I gut error, so need to find some other tool to convert my PythonConsole.py to PythonConsole.exe


回答1:


You don't have module named pefile install the module pip install pefile then try again




回答2:


Import errors can be raised if that package is already installed. check whether that requrired package is installed, using pip3 freeze in the cmd/powershell. Refer this link https://github.com/pyinstaller/pyinstaller/wiki/If-Things-Go-Wrong



来源:https://stackoverflow.com/questions/40989746/convert-py-to-exe

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