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 Six Module on Linux?
Next article icon

How to Install Python-logging module on Linux?

Last Updated : 07 Mar, 2022
Comments
Improve
Suggest changes
Like Article
Like
Report

A programmer’s backpack should include a logging library. It can aid in the development of a better knowledge of a program’s flow and the discovery of scenarios that you may not have considered when designing. Because most third-party Python libraries employ logging, you may combine your log messages with those from those libraries to create a unified log for your application. So, in this article, we’ll use the PIP manager to install the Logging package in Python on a Linux operating system. 

Installing Logging package on Linux using PIP

Requirements:

  1. Python3
  2. Python3-pip

To install the Logging package in Linux we have to follow the following steps:

Step 1: Setting up Python environment on our Linux operating system. So we’ll use the apt manager to install Python3.

sudo apt-get install python3

Setting-Python-environment

Step 2: Now we install the PIP manager. The PIP manager is a Python package installation program that is used to install and manage Python packages. So for the installation use the following command on the terminal.

sudo apt install python3-pip

Installing-pip-manager

Step 3: Now we’ll use the PIP manager to install the Logging package. So to install the Logging package, simply run the following command on the terminal.

sudo pip3 install logging

Installing-logging-package

Verifying the installation of Logging package on Linux using PIP

After you’ve installed the package, the next step is to check whether the logging package is successfully installed or not. So, we’ll only use the terminal to get the information about the installed package (logging).

python3 -m pip show logging

You will get the following output when the logging package is successfully installed.



Next Article
How to Install Python Six Module on Linux?

A

abhishekgandal324
Improve
Article Tags :
  • How To
  • Installation Guide
  • Python
  • how-to-install
Practice Tags :
  • python

Similar Reads

  • How to Install Python Six Module on Linux?
    Six is a Python library that is used to wrap the differences between Python 2 and Python 3 for those systems that work on both Python 2 and Python 3. It is compatible with both Python 2 and Python 3 and can only contain one Python file which makes it easier to add to your projects. In this, article,
    2 min read
  • How to Install Python py-asn module on Linux?
    Py-asn is a Python library that is considered as the extension library which activates very fast Internet Protocol addresses to Autonomous System Number lookups. We can also perform current state and historical state lookups with the help of this package. Input given to this package is MRT/RIB BGP a
    2 min read
  • How to Install Nose in Python on Linux?
    The nose is a Python package essentially needed for automation framework testing. Basically, Nose generates uni-test modules that will help to execute the testing result much better. Also, Nose provides another advantage in that it will auto-discover the test cases. Based on the test case result it
    3 min read
  • How to Install Python on Linux
    This guide explains how to install Python on Linux machines. Python has become an essential programming language for developers, data scientists, and system administrators. It's used for various applications, including web development, data science, automation, and machine learning. This comprehensi
    15+ min read
  • How to Install Nose 2 in Python on Linux?
    Nose 2 is a successor of the Nose package. It is used for testing Python applications. It provides different types of methods, modules, classes, test case levels, etc. It also provides built-in plugins which fulfill the specific need of the developer like tests coverage, profiling, etc. In this arti
    2 min read
  • How to Install Python-PyMedia on Linux?
    Are you having doubts about Installing Python-PyMedia on your Linux System? If so, your search for the best installation guide ends here. This article covers all the insights about Python-PyMedia, its features, and installation. As you finish this article, you will have all the information required
    6 min read
  • How to Install Python-Pymediainfo Module on Linux?
    Pymediainfo is a Python package that is used to wrap around the MediaInfo library. It works on various operating systems like Windows, Linux, and macOS. Along with this, it has support for various versions of Python like Python3.6, 3.7, 3.8, etc. In this article, we will look into the process of ins
    2 min read
  • How to Install Pyglet in Python on Linux?
    The pyglet is a Python library. It is a cross-platform windowing and multimedia library and is planned for developing games and other visually-rich applications like GUI applications and many more. It has an active developer and user community so that users can easily solve issues. It also supports
    2 min read
  • How to Install Python 3 on Kali Linux
    Python 3 is a powerful and versatile programming language widely used for various tasks, from web development to data science, security automation, and AI and ML. Recent versions of Kali Linux come with Python 3 pre-installed. For some reason if you want a different version than the one already inst
    3 min read
  • How to Install Mutagen for Python on Linux?
    Mutagen is a Python module or package. It is used to handle audio metadata. This can be used in GUI applications like Game Development, etc. It supports MP4, FLAC, Ogg Theora, True Audio, AIFF audio files, etc. It supports Python 3.5 and above versions and is available for Linux, Windows, macOS, etc
    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