$ python3
$ python
$ py
$ py3
If the python IDLE launched, skip to step 3
$ sudo apt update
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt update
Now, when everything is ready for the python installation, you can install it
$ sudo apt install python3.8 #or any other python version eg python3.10
$ sudo apt install python3-pip #if this didn't work try the one below
$ sudo apt install python-pip3
Now you can use it like
$ pip3 install discord.py
Docker is containerization utility that is very powerful and is recommended for running applications like discord bots. Check out my tutorial about using it.
Screen is basically a background terminal you can attach to, detach and kill.
$ sudo apt install screen
$ screen -S nice-screen-name
We highly encourage to use venv for running the applications, although it is not really necessary
$ cd path/to/your/bot/dir
$ python3 -m venv venv
$ . venv/bin/activate
$ python3 main.py # or whatever your start script is named
Ctrl + A
, D
$ screen -r nice-screen-name
$ screen -ls