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
  • DSA
  • Practice Problems
  • Python
  • C
  • C++
  • Java
  • Courses
  • Machine Learning
  • DevOps
  • Web Development
  • System Design
  • Aptitude
  • Projects
Open In App
Next Article:
How to Install Python-sh on Linux?
Next article icon

How to Install PyUSB on Linux?

Last Updated : 31 Jan, 2022
Comments
Improve
Suggest changes
Like Article
Like
Report

The PyUSB module or package provides for Python easy access to the host machine’s Universal Serial Bus (USB) system. Generally, it works without any extra code in any environment with python 3.6 and above. In this article, we will learn how to install the PyUSB on the Linux operating system. 

Requirements:

  • Python3
  • Python3-pip

Installing PyUSB package on Linux using PIP

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

Step 1: Install Python3 on Linux using the following command in the terminal:

sudo apt-get install python3

Installing-Python3-on-Linux

Step 2: Now, install the pip module which is required to install and manage Python3 packages. So use the following command:

sudo apt install python3-pip

Installing-the-pip-module

Step 3: Now, install the PyUSB package with the help of the following command:

sudo pip3 install pyusb

Installing-the-PyUSB-package

Verifying PyUSB package installation on Linux using PIP

To verify if the PyUSB package has been successfully installed in your system run the below command in Terminal:

python3 -m pip show pyusb

You’ll get the following message if the installation is completed successfully without any error.

Verifying-PyUSB-package-installation

Next Article
How to Install Python-sh on Linux?

A

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

Similar Reads

  • How to Install PyBrain on Linux?
    PyBrain is an open-source and free-to-use Python-based Machine Learning Library. Its main purpose is to provide machine learning tasks with flexible, easy-to-use, still a very powerful algorithms. It also provides a wide range of predefined environments which is used to test and compare different ty
    2 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 Pyproj on Linux?
    Pyproj is an Interface for the cartographic projections and coordinate transformations library (PROJ). In this article, we will look into the process of installing the Pyproj interface on a Linux machine. Pre-requisites: The only thing that you need for installing Numpy on Windows are: PythonPIP or
    2 min read
  • How to Install pywin32 on Linux?
    Pywin32 is a Python extension or library for Windows OS which is used to access the characteristics of the Win32 application programming interface (API) on the Python language environment. It supported Python 3 and above versions. In this article, we will look into the process of installing Pywin32
    1 min read
  • How to Install Python-sh on Linux?
    In python, the sh package is a full-fledged sub-process replacement for Python 2.6 - 3.8, PyPy, and PyPy3 that allows you to call any program as if it were a function. So, in this article, we will be installing the sh package in Python on Linux operating system. Installing Sh package on Linux using
    1 min read
  • How to Install PyUSB on MacOS?
    In this article, we will learn how to install PyUSB in Python on MacOS. The PyUSB module provides for Python easy access to the host machine's Universal Serial Bus (USB) system. Installation:Method 1: Using pip to install PyUSB Follow the below steps to install pyusb package on macOS using pip: Step
    2 min read
  • How to Install Linux on Raspberry Pi
    Quick Preview to Install Linux on Raspberry PiMake Ready the Raspberry Pi Imager:Download the Raspberry Pi Imager as per the current OS from the Official Site.Choose the Linux Distribution from the Operating System Section.Choose the SD Card inserted on the device.Click Next to move into the process
    4 min read
  • How to Install Python sympy on Linux?
    Sympy is a Python library that is used to perform symbolic mathematics operations. It is a full-featured algebra system that keeps the code as simple as possible for more simplicity and efficiency. Sympy library depends on some other Python libraries like mpmath which is a core python library to per
    2 min read
  • How to Install Numpy on Linux?
    Python NumPy is a general-purpose array processing package that provides tools for handling n-dimensional arrays. It provides various computing tools such as comprehensive mathematical functions, linear algebra routines. NumPy provides both the flexibility of Python and the speed of well-optimized c
    2 min read
  • How to Install wxPython on Linux?
    wxPython is a Python module. It is an open-source module that allows its users to create a highly functional, cross-platform graphical user interface (GUI). It is a set of extension modules that wrap the GUI components of the wxPython library. In this article, we will look into the process of instal
    1 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