Install bottle

Summary of what you are going to install:

  1. python
  2. pip
  3. bottle

Install python, pip and bottle via apt:

sudo apt update
sudo apt install python3.6
sudo apt -y install python3-pip
sudo pip3 install pymysql

The following is a baseline for installation procedure:

1) Update the repository

sudo apt update

2) Install python

You can see which version you have installed with the following commands (it depends on the version, unfortunately):

$ python3 --version
$ python --version
$ python -V

On how to find which version you have read more here

Here is a sample code that installs python 3.6

sudo apt install python3.6

2) Install pip

pip is a package management system used to install and manage software packages written in Python. It is useful because you can install needed libraries with very simple commands.

You can install pip via the command:

sudo apt -y install python3-pip

3) Install pymysql

Once you have installed pip, you can install the mysql library with the following command:

sudo pip3 install pymysql

Leave a Reply