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

How to install OPi.GPIO via python pip




OPi.GPIO - A drop-in replacement for RPi.GPIO for the Orange Pi Zero, it belongs to Classifiers:

- Development Status :: 4 - Beta
- Intended Audience :: Education
- License :: OSI Approved :: MIT License
- Programming Language :: Python :: 2
- Programming Language :: Python :: 2.7
- Programming Language :: Python :: 3.4
- Programming Language :: Python :: 3.5
- Programming Language :: Python :: 3.6
- Topic :: Education
- Topic :: System
- Topic :: System :: Hardware
- Topic :: System :: Hardware :: Hardware Drivers

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



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_OPi.GPIO_env

- Active the virtual environment

test_OPi.GPIO_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_OPi.GPIO_env

- Active the virtual environment

source test_OPi.GPIO_env/bin/active


Step 2: OK, now, let flow below content to start the installation OPi.GPIO

To install OPi.GPIO on Windows(CMD):

py -m pip install OPi.GPIO

To install OPi.GPIO on Unix/macOs:

pip install OPi.GPIO


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

Example:

pip install OPi.GPIO==0.1.0


Please see the version list below table:

VersionReleased dateCommand
OPi.GPIO 0.5.22021-10-26T15:52:44Windows:

py -m pip install OPi.GPIO==0.5.2

Unix/macOs:

pip install OPi.GPIO==0.5.2

OPi.GPIO 0.5.12021-08-18T23:45:00Windows:

py -m pip install OPi.GPIO==0.5.1

Unix/macOs:

pip install OPi.GPIO==0.5.1

OPi.GPIO 0.4.02019-10-21T22:31:44Windows:

py -m pip install OPi.GPIO==0.4.0

Unix/macOs:

pip install OPi.GPIO==0.4.0

OPi.GPIO 0.3.62019-01-14T09:20:02Windows:

py -m pip install OPi.GPIO==0.3.6

Unix/macOs:

pip install OPi.GPIO==0.3.6

OPi.GPIO 0.3.52018-11-10T00:22:38Windows:

py -m pip install OPi.GPIO==0.3.5

Unix/macOs:

pip install OPi.GPIO==0.3.5

OPi.GPIO 0.3.42018-09-16T21:37:08Windows:

py -m pip install OPi.GPIO==0.3.4

Unix/macOs:

pip install OPi.GPIO==0.3.4

OPi.GPIO 0.3.22018-03-04T23:11:37Windows:

py -m pip install OPi.GPIO==0.3.2

Unix/macOs:

pip install OPi.GPIO==0.3.2

OPi.GPIO 0.3.12018-01-01T19:14:30Windows:

py -m pip install OPi.GPIO==0.3.1

Unix/macOs:

pip install OPi.GPIO==0.3.1

OPi.GPIO 0.3.02017-12-31T14:22:40Windows:

py -m pip install OPi.GPIO==0.3.0

Unix/macOs:

pip install OPi.GPIO==0.3.0

OPi.GPIO 0.2.52017-07-15T21:21:44Windows:

py -m pip install OPi.GPIO==0.2.5

Unix/macOs:

pip install OPi.GPIO==0.2.5

OPi.GPIO 0.2.42017-05-27T15:58:45Windows:

py -m pip install OPi.GPIO==0.2.4

Unix/macOs:

pip install OPi.GPIO==0.2.4

OPi.GPIO 0.2.32017-05-26T21:37:32Windows:

py -m pip install OPi.GPIO==0.2.3

Unix/macOs:

pip install OPi.GPIO==0.2.3

OPi.GPIO 0.2.22017-03-28T19:48:50Windows:

py -m pip install OPi.GPIO==0.2.2

Unix/macOs:

pip install OPi.GPIO==0.2.2

OPi.GPIO 0.2.12017-03-14T23:36:43Windows:

py -m pip install OPi.GPIO==0.2.1

Unix/macOs:

pip install OPi.GPIO==0.2.1

OPi.GPIO 0.2.02017-03-14T21:12:28Windows:

py -m pip install OPi.GPIO==0.2.0

Unix/macOs:

pip install OPi.GPIO==0.2.0

OPi.GPIO 0.1.02017-03-11T00:52:48Windows:

py -m pip install OPi.GPIO==0.1.0

Unix/macOs:

pip install OPi.GPIO==0.1.0


Step 4: Otherwise, you can install OPi.GPIO from local archives:

Download the distribution file from OPi.GPIO-0.5.2.tar.gz or the specific OPi.GPIO version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_OPi.GPIO_downloaded_file>

On Unix/macOs:

pip install <path_to_OPi.GPIO_downloaded_file>


List distribution:

- OPi.GPIO-0.1.0-py2.py3-none-any.whl
- OPi.GPIO-0.1.0.tar.gz
- OPi.GPIO-0.2.0-py2.py3-none-any.whl
- OPi.GPIO-0.2.0.tar.gz
- OPi.GPIO-0.2.1-py2.py3-none-any.whl
- OPi.GPIO-0.2.1.tar.gz
- OPi.GPIO-0.2.2-py2.py3-none-any.whl
- OPi.GPIO-0.2.2.tar.gz
- OPi.GPIO-0.2.3-py2.py3-none-any.whl
- OPi.GPIO-0.2.3.tar.gz
- OPi.GPIO-0.2.4-py2.py3-none-any.whl
- OPi.GPIO-0.2.4.tar.gz
- OPi.GPIO-0.2.5-py2.py3-none-any.whl
- OPi.GPIO-0.2.5.tar.gz
- OPi.GPIO-0.3.0-py2.py3-none-any.whl
- OPi.GPIO-0.3.0.tar.gz
- OPi.GPIO-0.3.1-py2.py3-none-any.whl
- OPi.GPIO-0.3.1.tar.gz
- OPi.GPIO-0.3.2-py2.py3-none-any.whl
- OPi.GPIO-0.3.2.tar.gz
- OPi.GPIO-0.3.4-py2.py3-none-any.whl
- OPi.GPIO-0.3.4.tar.gz
- OPi.GPIO-0.3.5-py2.py3-none-any.whl
- OPi.GPIO-0.3.5.tar.gz
- OPi.GPIO-0.3.6-py2.py3-none-any.whl
- OPi.GPIO-0.3.6.tar.gz
- OPi.GPIO-0.4.0-py2.py3-none-any.whl
- OPi.GPIO-0.4.0.tar.gz
- OPi.GPIO-0.5.1-py2.py3-none-any.whl
- OPi.GPIO-0.5.1.tar.gz
- OPi.GPIO-0.5.2-py2.py3-none-any.whl
- OPi.GPIO-0.5.2.tar.gz


Project link:

- Homepage
- Download