Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install pyusb via python pip




pyusb - Python USB access module, it belongs to Classifiers:

- Intended Audience :: Information Technology
- Intended Audience :: Manufacturing
- Intended Audience :: Science/Research
- Intended Audience :: System Administrators
- Intended Audience :: Telecommunications Industry
- License :: OSI Approved :: BSD License
- Operating System :: Microsoft :: Windows
- Operating System :: Microsoft :: Windows :: Windows 10
- Programming Language :: Python :: Implementation
- Programming Language :: Python :: Implementation :: CPython
- Programming Language :: Python :: Implementation :: IronPython
- Programming Language :: Python :: Implementation :: Jython
- Programming Language :: Python :: Implementation :: PyPy
- Topic :: Scientific/Engineering
- Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator
- Topic :: Software Development :: Libraries
- Topic :: Software Development :: Libraries :: Python Modules
- Topic :: System
- Topic :: System :: Hardware
- Topic :: System :: Hardware :: Hardware Drivers

When you know about this project and you want to new install pyusb to support your project or you get trouble as ModuleNotFoundError: No module named "pyusb" or ImportError: cannot import name "pyusb" in your project, let follow this tutorial to install pyusb



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_pyusb_env

- Active the virtual environment

test_pyusb_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_pyusb_env

- Active the virtual environment

source test_pyusb_env/bin/active


Step 2: OK, now, let flow below content to start the installation pyusb

To install pyusb on Windows(CMD):

py -m pip install pyusb

To install pyusb on Unix/macOs:

pip install pyusb


Step 3: If you want to install a specific pyusb version, add ==<pyusb version> to the end command line

Example:

pip install pyusb==0.4.2


Please see the version list below table:

VersionReleased dateCommand
pyusb 1.2.12021-07-09T02:58:44Windows:

py -m pip install pyusb==1.2.1

Unix/macOs:

pip install pyusb==1.2.1

pyusb 1.2.02021-07-05T05:58:38Windows:

py -m pip install pyusb==1.2.0

Unix/macOs:

pip install pyusb==1.2.0

pyusb 1.1.1 yanked2021-01-20T06:22:11Windows:

py -m pip install pyusb==1.1.1                                                                          yanked

Unix/macOs:

pip install pyusb==1.1.1                                                                          yanked

pyusb 1.1.02020-09-13T16:37:29Windows:

py -m pip install pyusb==1.1.0

Unix/macOs:

pip install pyusb==1.1.0

pyusb 1.0.22017-10-12T01:19:01Windows:

py -m pip install pyusb==1.0.2

Unix/macOs:

pip install pyusb==1.0.2

pyusb 1.0.12017-10-09T14:13:39Windows:

py -m pip install pyusb==1.0.1

Unix/macOs:

pip install pyusb==1.0.1

pyusb 1.0.02016-04-30T23:03:28Windows:

py -m pip install pyusb==1.0.0

Unix/macOs:

pip install pyusb==1.0.0

pyusb 0.4.22010-01-06T06:44:32Windows:

py -m pip install pyusb==0.4.2

Unix/macOs:

pip install pyusb==0.4.2


Step 4: Otherwise, you can install pyusb from local archives:

Download the distribution file from pyusb-1.2.1.tar.gz or the specific pyusb version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_pyusb_downloaded_file>

On Unix/macOs:

pip install <path_to_pyusb_downloaded_file>


List distribution:


Project link:

- Homepage