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

How to install pywinusb via python pip




pywinusb - A package that simplifies USB/HID communications on windows, it belongs to Classifiers:

- Environment :: Win32 (MS Windows)
- Operating System :: Microsoft
- Operating System :: Microsoft :: Windows
- Programming Language :: Python :: 3.3
- Topic :: Scientific/Engineering
- Topic :: Scientific/Engineering :: Human Machine Interfaces
- Topic :: Software Development :: Embedded Systems
- Topic :: Software Development :: Libraries :: Python Modules
- Topic :: System
- Topic :: System :: Hardware
- Topic :: System :: Hardware :: Hardware Drivers
- Topic :: Utilities

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



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_pywinusb_env

- Active the virtual environment

test_pywinusb_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_pywinusb_env

- Active the virtual environment

source test_pywinusb_env/bin/active


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

To install pywinusb on Windows(CMD):

py -m pip install pywinusb

To install pywinusb on Unix/macOs:

pip install pywinusb


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

Example:

pip install pywinusb==0.2.9


Please see the version list below table:

VersionReleased dateCommand
pywinusb 0.4.22016-12-12T04:32:54Windows:

py -m pip install pywinusb==0.4.2

Unix/macOs:

pip install pywinusb==0.4.2

pywinusb 0.4.12016-02-16T00:32:09Windows:

py -m pip install pywinusb==0.4.1

Unix/macOs:

pip install pywinusb==0.4.1

pywinusb 0.4.02015-10-20T06:33:53Windows:

py -m pip install pywinusb==0.4.0

Unix/macOs:

pip install pywinusb==0.4.0

pywinusb 0.3.62015-03-21T16:49:11Windows:

py -m pip install pywinusb==0.3.6

Unix/macOs:

pip install pywinusb==0.3.6

pywinusb 0.3.52015-03-21T00:50:37Windows:

py -m pip install pywinusb==0.3.5

Unix/macOs:

pip install pywinusb==0.3.5

pywinusb 0.3.42015-03-20T22:08:30Windows:

py -m pip install pywinusb==0.3.4

Unix/macOs:

pip install pywinusb==0.3.4

pywinusb 0.3.32014-04-10T22:34:29Windows:

py -m pip install pywinusb==0.3.3

Unix/macOs:

pip install pywinusb==0.3.3

pywinusb 0.3.22012-12-03T02:32:14Windows:

py -m pip install pywinusb==0.3.2

Unix/macOs:

pip install pywinusb==0.3.2

pywinusb 0.3.12012-04-07T04:40:36Windows:

py -m pip install pywinusb==0.3.1

Unix/macOs:

pip install pywinusb==0.3.1

pywinusb 0.2.92012-02-23T23:50:20Windows:

py -m pip install pywinusb==0.2.9

Unix/macOs:

pip install pywinusb==0.2.9


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

Download the distribution file from pywinusb-0.4.2.zip or the specific pywinusb version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_pywinusb_downloaded_file>

On Unix/macOs:

pip install <path_to_pywinusb_downloaded_file>


List distribution:


Project link:

- Homepage