问题
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