Introduction
In this article, you will learn how to install bottle web framework. It is a micro framework of Python. Bottle is a web server gateway interface (WSGI) that is compatible with a single source web - framework, and the only dependency it needs is Python standard library. Flatpak, AppImage, Deb, and Snap distribute "Bottles officially." It is used for creating small web applications, and its installation does not require much coding. It is independent and has only one file in it.

Methods To Install Bottle
We can use two methods to install bottle.
1. Using pip to install bottle
2. Using bottle.py package

Installing py-bottle on Windows
Step 1: To execute bottle apps, you must have Python version 2.7 or above (including 3.4+). We install the latest Python 3 version and set up the environment variables in the windows of our system. Here we use the command prompt for the installation.
Step 2: We use the command prompt to check the Python installation. After successfully installing Python in the system, we type
pip install bottle
in the command prompt and press enter.

After pressing enter, you will get the message of successful bottle installation.

Installing py-bottle on Linux
In this, we install bottle on Linux using setup.py
Step1: Download the most recent source package of Py-Bottle for Python 3 from the website here.
Under the file section, download the file below the source distribution, or you can directly download it from this link below.
Click here to download
Step 2: Extract the py-bottle package you just downloaded. Use the following command.
tar -xzvf bottle.tar.gz
Step 3: Install the package by going into the bottle-0.12.19 folder.
cd bottle-0.12.19
python3 setup.py install
Verify Bottle Installation
We write the following to check the installation in the python terminal.
import bottle

If any error message occurs, that means the installation of the package was unsuccessful.
Also see, How to Check Python Version in CMD




