How to Install PyUSB on MacOS? Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report 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 1: Install latest Python3 in MacOS Step 2: Check if pip3 and python3 are correctly installed. python3 --version pip3 --version Step 3: Upgrade your pip to avoid errors during installation. pip3 install --upgrade pip Step 4: Enter the following command to install PyUSB using pip3. pip3 install pyusbMethod 2: Using setup.py to install PyUSB Follow the below steps to install pyusb package on macOS using the setup.py file: Step 1: Download the latest source package of PyUSB for python3 from here. curl https://files.pythonhosted.org/packages/d9/6e/433a5614132576289b8643fe598dd5d51b16e130fd591564be952e15bb45/pyusb-1.2.1.tar.gz > pyusb.tar.gz Step 2: Extract the downloaded package using the following command. tar -xzvf pyusb.tar.gz Step 3: Go inside the folder and Enter the following command to install the package. cd pyusb-1.2.1 python3 setup.py installVerifying pyusb installation on macOS: Make the following import in your python terminal to verify if the installation has been done properly: import usb.core import usb.util If there is any error while importing the module then is not installed properly. Comment More infoAdvertise with us Next Article How to Install SQLplus on MacOS? A anilabhadatta Follow Improve Article Tags : How To Installation Guide Blogathon Blogathon-2021 how-to-install +1 More Similar Reads How to Install SQLplus on MacOS? Oracle database is the most commonly used database in transaction processing, data warehousing, and several other applications. SQLPlus is the basic Oracle Database utility and the main purpose of this module is to interact with the Oracle database and run different types of queries. It is the most 2 min read How to Install PyBrain on MacOS? 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 PyYAML on MacOS? YAML is a data serialization format that allows interaction with scripts. It is often used to create configuration files as it prioritizes human readability over JSON. PyYAML is a tool for parsing and outputting YAML for Python. It has many useful features, such as an API for low-level event-based p 2 min read How to Install py-pmw on MacOS? Pmw is a toolkit and used for creating high-level compound widgets, also known as mega widgets, that are made up of other widgets. It supports a consistent appearance and feels across graphical apps, is highly adaptable to your needs, and is simple to use. It includes some base classes and libraries 2 min read How to Install Seaborn on MacOS? In this article, we will learn how to install seaborn in Python on MacOS. Seaborn is a library for making statistical graphics in Python. It is built on top of matplotlib and is closely integrated with pandas data structures. Installation:Method 1: Using pip to install Seaborn Package Follow the bel 2 min read How to Install Pytorch on MacOS? PyTorch is an open-source machine learning library based on the Torch library, used for applications such as computer vision and natural language processing, primarily developed by Facebook's AI Research lab. It is free and open-source software released under the Modified BSD license. Prerequisites: 2 min read Like