• 0 Posts
  • 5 Comments
Joined 3 years ago
cake
Cake day: June 12th, 2023

help-circle

  • emb@lemmy.worldtoLinux@lemmy.mlHow to install .py apps?
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    3 days ago

    If you actually just download a .py file, you need to run it with python. Like in the example you linked, something like

    python3 _filename_
    

    (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

    pip _package-name_
    

    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

    sudo apt install python3 pip