(base) C:\D\Datapumputility>pyinstaller -onefile datapumpforschema.pyĢ667 INFO: wrote C:\D\Datapumputility\datapumpforschema.specĢ695 INFO: Extending PYTHONPATH with pathsĦ152 INFO: Building Analysis because Analysis-00.toc is non existentĦ152 INFO: Initializing module dependency graph.Ħ290 INFO: Analyzing base_library.zip. Execute the following command to create an exe in that folder with Python script. Go to the folder where python script is saved. Successfully installed altgraph-0.17.2 pefile-2021.9.3 pyinstaller-4.5.1 pyinstaller-hooks-contrib-2021.3Ĥ. Installing collected packages: pyinstaller-hooks-contrib, pefile, altgraph, pyinstaller Stored in directory: c:\users\adminuser\appdata\local\pip\cache\wheels\ee\a0\e1\ff2dafe5ae846f536acf0a4cc4a8b8d4ccb3044ab87f3ef174 Requirement already satisfied: future in c:\users\adminuser\anaconda3\lib\site-packages (from pefile>=2017.8.1->pyinstaller) (0.18.2)īuilding wheels for collected packages: pefileīuilding wheel for pefile (setup.py). Requirement already satisfied: setuptools in c:\users\adminuser\anaconda3\lib\site-packages (from pyinstaller) (52.0.0.post20210125)Ĭollecting pyinstaller-hooks-contrib>=2020.6ĭownloading pyinstaller_hooks_圓-none-any.whl (200 kB) Requirement already satisfied: pywin32-ctypes>=0.2.0 in c:\users\adminuser\anaconda3\lib\site-packages (from pyinstaller) (0.2.0)ĭownloading altgraph-0.17.2-py2.p圓-none-any.whl (21 kB) pip install pyinstallerĮxample: (base) C:\Users\adminuser>pip install pyinstallerĭownloading pyinstaller-4.5.1-p圓-none-win_amd64.whl (1.9 MB) Execute the following command to install the pyinstaller. Save the python coding in the folder where you want to create an exe file.Ģ. pyinstalled -onefile -windowed -icon=icon.ico gui_exe.Create executable file for windows for python script through Anaconda command promptġ.Save image in the same directory where the.This will by default run the GUI which you created using TKinter or any other GUI frameworkįurther, You can also add an icon to your exe file by using the command Pyinstaller -onefile -windowed gui_exe.py ![]() Congratulations you have just created your first distributable Windows software. ![]() Open the dist folder created in the working directory. ![]() Pyinstaller -onefile cui_exe.py (replace cui_.py with your file name)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |