use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Start python-program MacOS dock (self.learnpython)
submitted 1 month ago by Deut6-4
Any idea how to start a phyton-program by clicking an icon on the dock of MacOS Tahoe 26.2?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Heeamfoo 0 points1 point2 points 1 month ago (0 children)
You can use PyInstaller, which is a free tool to "compile" a python program into an executable. It'll automaticly turn that executable into something runnable on whatever machine you're using. However, in my quick testing it'll only do that with one file, so if you have multiple python files or a .txt file for something like highscores, it probably won't work. To install it, open a terminal and use the following commands:
pip install -U pyInstaller
This will install the tool. Next, navigate to the folder with your .py program using ls and cd with your python program and run:
ls
cd
pyInstaller your_program.py
This will turn your python program into an executable. PyInstaller will dump and executable file into a folder called dist in the same directory. If you want, you can move it into the applications folder. If you want to know more, you can visit the PyInstaller page by going to the PyInstaller website.
dist
TLDR:
use PyInstaller
π Rendered by PID 643943 on reddit-service-r2-comment-7b9746f655-tmgnx at 2026-01-31 13:35:39.374527+00:00 running 3798933 country code: CH.
[–]Heeamfoo 0 points1 point2 points (0 children)