{"id":25040850,"url":"https://github.com/widilo/create_exe_file_from_python_script","last_synced_at":"2026-02-18T03:32:16.137Z","repository":{"id":274876487,"uuid":"924357018","full_name":"widilo/create_exe_file_from_python_script","owner":"widilo","description":"Create a Windows Executable from a Python Script","archived":false,"fork":false,"pushed_at":"2025-01-29T21:51:23.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T12:48:54.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/widilo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-29T21:17:42.000Z","updated_at":"2025-01-29T21:51:26.000Z","dependencies_parsed_at":"2025-01-29T22:36:40.780Z","dependency_job_id":null,"html_url":"https://github.com/widilo/create_exe_file_from_python_script","commit_stats":null,"previous_names":["widilo/create_exe_file_from_python_script"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/widilo/create_exe_file_from_python_script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/widilo%2Fcreate_exe_file_from_python_script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/widilo%2Fcreate_exe_file_from_python_script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/widilo%2Fcreate_exe_file_from_python_script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/widilo%2Fcreate_exe_file_from_python_script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/widilo","download_url":"https://codeload.github.com/widilo/create_exe_file_from_python_script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/widilo%2Fcreate_exe_file_from_python_script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29567374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T00:47:08.760Z","status":"online","status_checked_at":"2026-02-18T02:00:09.468Z","response_time":162,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-06T03:55:48.287Z","updated_at":"2026-02-18T03:32:11.128Z","avatar_url":"https://github.com/widilo.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to Create a Windows Executable from a Python Script\n\nTurning your Python script into a standalone .exe file is simple with PyInstaller. Follow this guide to generate an executable that can run on Windows without requiring Python installation.\n\n### 1. Install PyInstaller\n\nFirst, install PyInstaller if you haven’t already:\n\n```bash\npip install pyinstaller\n```\n\n### 2. Convert the Script to an Executable\n\nRun the following command in the terminal or command prompt:\n\n```bash\npyinstaller --onefile --windowed yourscript.py\n```\n\nExplanation of Flags:\n\n```bash\n    --onefile: Creates a single executable instead of multiple files.\n    --windowed (optional): Hides the console window (useful for GUI applications). Omit this flag for CLI scripts.\n```\n\n### 3. Find the Executable\n\nAfter running the command, PyInstaller will generate files in the dist folder. Your `.exe` will be located at:\n\n```bash\ndist/yourscript.exe\n```\n\n### 4. Running the Executable\n\nNavigate to the dist folder and run:\n\n```bash\nyourscript.exe\n```\n\n### 5. (Optional) Add an Icon\n\nIf you want to add a custom icon, use:\n\n```bash\npyinstaller --onefile --icon=icon.ico yourscript.py\n```\n\nMake sure `icon.ico` is in the same directory as your script.\n\n## License\n\n\u003cp xmlns:cc=\"http://creativecommons.org/ns#\"  xmlns:dct=\"http://purl.org/dc/terms/\"\u003e\u003ca property=\"dct:title\"  rel=\"cc:attributionURL\"  href=\"https://github.com/widilo/compare-two-excel-files-with-python\"\u003eCompare two Excel files using Python\u003c/a\u003e by \u003ca rel=\"cc:attributionURL dct:creator\"  property=\"cc:attributionName\"  href=\"https://widilo.de\"\u003ewidilo\u003c/a\u003e is licensed under  \u003ca  href=\"http://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1\"  target=\"_blank\" rel=\"license noopener noreferrer\"  style=\"display:inline-block;\"\u003eCC BY-NC-SA 4.0 \u003cbr\u003e\u003cbr\u003e\u003cimg  style=\"height:22px!important;margin-left:3px;vertical-align:text-bottom;\"   src=\"https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1\"\u003e\u003cimg   style=\"height:22px!important;margin-left:3px;vertical-align:text-bottom;\"   src=\"https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1\"\u003e\u003cimg   style=\"height:22px!important;margin-left:3px;vertical-align:text-bottom;\"   src=\"https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1\"\u003e\u003cimg   style=\"height:22px!important;margin-left:3px;vertical-align:text-bottom;\"   src=\"https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1\"\u003e\u003c/a\u003e\u003c/p\u003e \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwidilo%2Fcreate_exe_file_from_python_script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwidilo%2Fcreate_exe_file_from_python_script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwidilo%2Fcreate_exe_file_from_python_script/lists"}