• 0 Posts
  • 1 Comment
Joined 27 days ago
cake
Cake day: January 30th, 2026

help-circle
  • ejs@piefed.socialtoLinux@lemmy.mlHow to install .py apps?
    link
    fedilink
    English
    arrow-up
    1
    ·
    17 hours ago

    I’d recommend installing those python dependencies using apt, so that when you update your system packages, the python libraries get updated, too. Pip, on the other hand, is useful for development but is detatched from apt and you will definitely forget to pip update unlike apt update which you hopefully do frequently. Use the names of the packages the readme provides in the pip install … instruction. For example, for numpy, you can install this.

    Then, since that python script has a shebang at the top, you can add it to a directory in your $PATH and mark it executable with chmod, and you can invoke the script in your shell from any directory with just the file name.