Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Python Tutorial
  • Interview Questions
  • Python Quiz
  • Python Glossary
  • Python Projects
  • Practice Python
  • Data Science With Python
  • Python Web Dev
  • DSA with Python
  • Python OOPs
Open In App
Next Article:
How to Install Python RSA Package on Linux?
Next article icon

How to Install python 'bottle package' on Linux?

Last Updated : 12 Feb, 2022
Comments
Improve
Suggest changes
Like Article
Like
Report

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

Checking-pip3-and-python3

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

pip3 install --upgrade pip

Upgrading-pip3

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

pip3 install bottle

Installing-py-bottle-package

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

Downloading-the-source-package

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 setup.py install

Installing-py-bottle-using-the-setup.py 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

Verifying-py-bottle-installation

 


Next Article
How to Install Python RSA Package on Linux?
author
anilabhadatta
Improve
Article Tags :
  • Python
  • How To
  • Installation Guide
  • how-to-install
Practice Tags :
  • python

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
  • How to Install python3-xlib package on Linux?
    The Python3-xlib Library is intended to be a fully functional X client library for Python programs. It is written entirely in Python language, indifference to earlier X libraries for Python (the ancient X extension and the newer plxlib) which were interfaces to the C Xlib. So, in this article, we wi
    2 min read
  • How to Install PyOpenGL package on Linux?
    PyOpenGL library in Python language is an implementation of OpenGL in Python. PyOpenGL library consists of built-in handy graphical and audio libraries. PyOpenGL can be used with the PyGame library which is used for Game Development or GUI game development. PyOpenGL is a cross-platform binding libra
    2 min read
  • How to Install Python-numba package on Linux?
    Numba package translates Python functions to optimized machine code at runtime using the industry-standard LLVM compiler library. Numba-compiled numerical algorithms in Python can approach the rates of C or FORTRAN. So, in this article, we will be installing the Numba package in Python on Linux oper
    1 min read
  • How to Install Python-pymarc package on Linux?
    Pymarc is a python package for working with bibliographic data encoded in MARC21. Pymarc provides an API for reading, writing, and revising MARC records. It was mostly designed to be an emergency eject seat, forgetting your data assets out of MARC and into some kind of more rational representation.
    2 min read
  • How to Install "Python-PyPDF2" package on Linux?
    PyPDF2 is a Python module for extracting document-specific information, merging PDF files, separating PDF pages, adding watermarks to files, encrypting and decrypting PDF files, and so on. PyPDF2 is a pure python module so it can run on any platform without any platform-related dependencies on any e
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences