this post was submitted on 25 Feb 2026
40 points (93.5% liked)
Linux
63238 readers
835 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If you actually just download a .py file, you need to run it with python. Like in the example you linked, something like
(and if that's the case, you might need to add a line at the top of the file, telling it where the interpreter is. But probably you actually want the following)
To install, you use the python installer program, pip. Something like
Before you do either, you need to install python and pip. I don't know exactly (look for correct package names), but you need to run something like
No, pip is for libraries, and for running scripts in virtual environments (venv). Recent versions of pip don't work outside venvs. For installing packages systemwide use something like pipx, which creates venvs automagically and runs the script there.