Open In App
Related Articles

How to Install python ‘bottle package’ on Linux?

Improve Article
Save Article
Like Article

py-bottle is a lightweight micro-framework for developing small web apps and it supports request dispatching (Routes) with URL parameter support, templates, a built-in HTTP Server, and adapters for several third-party WSGI/HTTP-server and template engines are all included in a single file with no dependencies except the Python standard library. In this article, we will see how to install py-bottle on Linux. 

Installing py-bottle on Linux 

Method 1: Using pip to install py-bottle Package

Follow the below steps to install the py-bottle package on Linux using pip:

Step 1: First we install the current version of Python3 in the Linux System.

Step 2: Now we check if pip3 and python3 are installed or not in the Linux system by checking their versions.

python3 –version

pip3 –version


Step 3: Using the following command we upgrade pip3 to avoid getting errors during the installation.

pip3 install –upgrade pip


Step 4: To install py-bottle using pip3 use the following command.

pip3 install bottle


Method 2: Using to install py-bottle

To install the py-bottle package on Linux using the file follow the following steps:

Step 1: First of all download the latest source package of py-bottle for Python3 using the website.

curl > bottle.tar.gz


Step 2: Now extract the downloaded py-bottle package. 

tar -xzvf bottle.tar.gz

Extracting-the-bottle.tar.gz file

Step 3: Go inside the bottle-0.12.19 folder and install the package.

cd bottle-0.12.19

python3 install file

Verifying py-bottle installation on Linux:

To check the py-bottle package is installed properly or not we are going to import this package in the Python terminal. If we get an error then that means the package was not installed properly.

import bottle



Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 12 Feb, 2022
Like Article
Save Article
Similar Reads
Complete Tutorials