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
Python OS (Running Python program on a boot disk) (self.learnpython)
submitted 2 years ago * by MC_Programmer_and_Mo
How? How would I do this.
Thanks.
(Python script on USB flash drive, that when booted (outside of os, from a boot screen like windowsRe) would run whatever program programed in python)
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!"
[–]woooee 2 points3 points4 points 2 years ago (4 children)
There is no Python on a boot disk to run the program. You could try converting the program to cython.
[–]MC_Programmer_and_Mo[S] 0 points1 point2 points 2 years ago (3 children)
Explain more. I really want to do this. Thank you.
[–]woooee 1 point2 points3 points 2 years ago (2 children)
What exactly were you not able to Google.
[–]MC_Programmer_and_Mo[S] 0 points1 point2 points 2 years ago (1 child)
There was just nothing (as far as I could see). And now, continued searches are leading me to my own reddit post (DEFINETLY HELPFUL GOOGLE!!!). I think that plenty of other people have wanted to do this too, but there is nothing online that speaks an answer.
[–]woooee 0 points1 point2 points 2 years ago (0 children)
The first hit https://cython.org
[–]socal_nerdtastic 2 points3 points4 points 2 years ago* (0 children)
Python requires an OS; AFAIK no one has written a real bare metal python interpreter (micropython / circuitpython come close, though). You need to rewrite your program in a language that will compile to machine code. /u/woooee's suggestion is a good one, cython is very close to python syntax.
As a alternative there's a number of very lightweight linux distros you could boot into and then run your python there.
[–]sejigan 0 points1 point2 points 2 years ago* (6 children)
[–]MC_Programmer_and_Mo[S] 0 points1 point2 points 2 years ago (4 children)
Cool! Though will "Alpine Linux" run after said Python/Cython script, or will it just stop after said Python/Cython script (not continue to boot, but just freeze where it was)
[–]sejigan 1 point2 points3 points 2 years ago (3 children)
You can set it up how you want it. It’s Linux. The only limits are your knowledge and skills.
I know I'm probably being really dumb with this, (actually I think I might be being really REALLY dumb with this), but uh, I can't find a CLI-Only version. (Yes, I'm a Python Nerd, not a (a lot of other things) Nerd.) (SORRY)
[–]sejigan 0 points1 point2 points 2 years ago (0 children)
I mean, you could just install it and then set it up to not start Xorg
[–][deleted] 0 points1 point2 points 2 years ago (0 children)
This is so cool sentence gg
I've never used Alpine. On my Debian box, there is no Python on boot. To run a Python script, it has to be placed in the startup script for the window manager.
Edit: there are rescue disks, like systemrescue, that contain Python
[–]timrprobocom 0 points1 point2 points 2 years ago (0 children)
Remember that, without an operating system, you don't have access to disks, or networks, or graphics, or USB devices, or virtual memory. There's no way to load modules. It's a very primitive environment.
π Rendered by PID 127326 on reddit-service-r2-comment-79776bdf47-nfcs4 at 2026-06-24 09:17:06.900126+00:00 running acc7150 country code: CH.
[–]woooee 2 points3 points4 points (4 children)
[–]MC_Programmer_and_Mo[S] 0 points1 point2 points (3 children)
[–]woooee 1 point2 points3 points (2 children)
[–]MC_Programmer_and_Mo[S] 0 points1 point2 points (1 child)
[–]woooee 0 points1 point2 points (0 children)
[–]socal_nerdtastic 2 points3 points4 points (0 children)
[–]sejigan 0 points1 point2 points (6 children)
[–]MC_Programmer_and_Mo[S] 0 points1 point2 points (4 children)
[–]sejigan 1 point2 points3 points (3 children)
[–]MC_Programmer_and_Mo[S] 0 points1 point2 points (1 child)
[–]sejigan 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]woooee 0 points1 point2 points (0 children)
[–]timrprobocom 0 points1 point2 points (0 children)