How to Install python 'bottle package' on Linux?
Last Updated :
12 Feb, 2022
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 setup.py to install py-bottle
To install the py-bottle package on Linux using the setup.py file follow the following steps:
Step 1: First of all download the latest source package of py-bottle for Python3 using the website.
curl https://files.pythonhosted.org/packages/ea/80/3d2dca1562ffa1929017c74635b4cb3645a352588de89e90d0bb53af3317/bottle-0.12.19.tar.gz > bottle.tar.gz

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

Step 3: Go inside the bottle-0.12.19 folder and install the package.
cd bottle-0.12.19
python3 setup.py install

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

Similar Reads
How to Install Pytho-BioPython package on Linux? Biopython is a collection of publicly accessible Python libraries for biological computing built by a multinational team of developers in Python 3. BioPython is a collaborative effort to provide Python modules and apps that fulfill the demands of present and future bioinformatics research. So, in th
2 min read
How to Install Packages in Python on Linux? To install a package in python, we use pip. The pip is a python package manager. In this tutorial, we will be discussing how we can install packages in python on a Linux system. To install packages in python on Linux, we must have python and pip installed on our Linux machine. As python comes preins
2 min read
How to Install Python RSA Package on Linux? Python-RSA is an RSA implementation written entirely in Python. According to PKCS#1 version 1.5, it provides encryption and decryption, signing and checking signatures, and key creation. It can be used both on the command line and as a Python library. Installing Python RSA on Linux:Method 1: Using p
2 min read
How to Install bottle package in python? The bottle is a lightweight, WSGI-based micro web framework package for the Python language. One of the best features of this package is that it is distributed as a single file and it supports Python 2.7 and Python 3. This package is available for Windows, Linux, and macOS. Features of Bottle No dep
1 min read
How to Install python-YAML package on Linux? PyYAML is a special Python library for the package that is often used for the configuration of files and also can be used for data exchange purposes. PyYAML package is a Python YAML parser that permits the user to write YAML data and also parse it. PyYAML library is quite similar to the JSON library
2 min read