🌐
PyPI
pypi.org › project › RPi.GPIO
RPi.GPIO · PyPI
Download the file for your platform. If you're not sure which to choose, learn more about installing packages. ... Filter files by name, interpreter, ABI, and platform. If you're not sure about the file name format, learn more about wheel file names. ... Details for the file RPi.GPIO-0.7.1.tar.gz.
      » pip install RPi.GPIO
    
Published   Feb 06, 2022
Version   0.7.1
🌐
gpiozero
gpiozero.readthedocs.io › en › stable › installing.html
1. Installing GPIO Zero — gpiozero 2.0.1 Documentation
Follow these guides to installing on other operating systems, including for PCs using the remote GPIO feature. GPIO Zero is packaged in the apt repositories of Raspberry Pi OS, Debian and Ubuntu. It is also available on PyPI. ... If you’re using another operating system on your Raspberry Pi, you may need to use pip ...
Discussions

python - gpio library on windows while developing - Raspberry Pi Stack Exchange
I am new to Python so maybe this is not an appropriate question. I am working on a project on Python that will use GPIO functionalities of the raspberry Pi. Right now, I am developing the python co... More on raspberrypi.stackexchange.com
🌐 raspberrypi.stackexchange.com
August 4, 2015
python - How to install RPi.GPIO to windows - Stack Overflow
This worked for me. for more visit this post pip install gives error: Unable to find vcvarsall.bat ... Sign up to request clarification or add additional context in comments. ... much better than my very brief comment ... Im still not sure what he expects to be able to do with RPI_GPIO even if he can get it to install on windows ... More on stackoverflow.com
🌐 stackoverflow.com
How to correctly install the python RPi.GPIO library - Raspberry Pi Stack Exchange
If you're running Python 3 (idle3 on the command line) instead of Python 2 (python on the command line) you need to install the RPi.GPIO library with this command instead: ... Assuming you have pip, the python package index installer, which is installed on the latest versions of Raspbian by ... More on raspberrypi.stackexchange.com
🌐 raspberrypi.stackexchange.com
June 30, 2013
raspberry pi - Trying to install Python 3 package RPi.GPIO - Stack Overflow
I am having difficulty installing the RPi.GPIO package for Python 3 on Raspberry Pi. I am getting this error: python3-rpi.gpio is not available, but is referred to by another package. This might m... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Stack Overflow
stackoverflow.com › questions › 45942082 › rpi-gpio-library-on-windows
python - RPi.GPIO library on Windows - Stack Overflow
I work remote with VisualStudio2017 on my raspberry in C++. Including the use of GPIOs. Remote debugging is also possible. VisualStudio is also capable to programm in python. I thought it should be possible that someone has it already done. Then i found these links: https://learn.microsoft.com/en-us/visualstudio/python/debugging-cross-platform-remote · Importing RPi.GPIO into a Python Project within Visual Studio
Top answer
1 of 1
4

First you should look for the file vcvarsall.bat in your system.

If it does not exits I recommend you to install Microsoft Visual C++ Compiler for Python 2.7. This will create the vcvarsall.bat in "C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0" if you install it for all users.

The problem now is that a function find_vcvarsall(version) in the C:/Python27/Lib/distutils/msvc9compiler.py module is the one looking for vcvarsall.bat.

If you follow the function calls you will see is looking in the registry for the directory of the vcvarsall.bat file and it won't never find it because the function is looking in other directories different from where the above mentioned installation placed it, and in my case the registry didn't exits.

The easiest way to solve this problem is to remove the body (or just place in the first line) of the function find_vcvarsall(version) in the msvc9compiler.py file with the absolute path to vcvarsall.bat. For example:

def find_vcvarsall(version):
return r"C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0\vcvarsall.bat"

If you already have the vcvarsall.bat file you should check if you have the key productdir in the registry:

(HKEY_USERS, HKEY_CURRENT_USERS, HKEY_LOCAL_MACHINE or HKEY_CLASSES_ROOT)\Software\Wow6432Node\Microsoft\VisualStudio\version\Setup\VC

If you don't have the key just do:

def find_vcvarsall(version):
    return <path>\vcvarsall.bat

To understand the exact behavior check msvc9compiler.py module starting in the find_vcvarsall(version) function.

This worked for me. for more visit this post pip install gives error: Unable to find vcvarsall.bat

🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › community › general discussion
GPIO with IDLE/Windows - Raspberry Pi Forums
November 19, 2021 - mmkw43 wrote:Yes, but I need to import the GPIO module on IDLE. That's what I'm asking. RPi.GPIO is not compatible with Windows. Even if you can install and do an 'import RPi.GPIO' in IDLE / Python it will fail when you run the script in Win.
Find elsewhere
🌐
YouTube
youtube.com › watch
how to install rpi gpio for python 3 in windows
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
🌐
gpiozero
gpiozero.readthedocs.io › en › stable › remote_gpio.html
4. Configuring Remote GPIO — gpiozero 2.0.1 Documentation
Modern Python installers for Windows bundle pip with Python. If pip is not installed, you can follow this guide. Next, install GPIO Zero and pigpio with pip:
🌐
Geekworm Wiki
wiki.geekworm.com › How_to_Install_RPi.GPIO_Python_Library
How to Install RPi.GPIO Python Library - Geekworm Wiki
If it isn’t already installed it will be installed. If it is already installed it will be upgraded if a newer version is available. The package is available from http://pypi.python.org/pypi/RPi.GPIO and the current version is 0.7.1 (Feb 6, 2022).
🌐
The Pi Hut
thepihut.com › home › the pi hut tutorials › how to install the gpio python library
How to Install the GPIO Python Library
July 3, 2019 - At the time of writing the current version of the library is 0.5.3a. 1. Open a terminal window on your raspberry pi and type the following to download the library to your home directory.
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › python
installing RPi.GPIO and vs code issues - Raspberry Pi Forums
December 13, 2023 - I tried executing the following commands in a .py file: from mfrc522 import SimpleMFRC522 import PRi.GPIO as GPIO I initially got an error: ModuleNotFoundError: No module named 'mfrc522' but I quickly resolved in by running %pip install mfrc522 As expected when I ran the code again I got: ...
🌐
GitHub
github.com › sn4k3 › FakeRPi
GitHub - sn4k3/FakeRPi: Develop for Raspberry PI on Windows or other sistems that don't have RPI.GPIO libraries.
pip install git+https://github.com/sn4k3/FakeRPi · Developing on Windows and sync with Raspberry Pi; IDE can't find the library or complete code; You don't have an Raspberry Pi yet, but you want to start your coding; You just want to use the utilities to simplify your code. Implements all methods and constants from RPi.GPIO; Supports RPiO; Code completion; Some useful utilities.
Starred by 49 users
Forked by 6 users
Languages   Python 100.0% | Python 100.0%
🌐
Raspberry Pi Spy
raspberrypi-spy.co.uk › home › python › install rpi.gpio python library
Install RPi.GPIO Python Library - Raspberry Pi Spy
February 16, 2015 - On the latest image RPi.GPIO is already included and doesn’t need installing separately. ... Packages on PyPi are installable with pip, and you should only need to download their archives if your device has no internet and/or pip.
🌐
SourceForge
sourceforge.net › projects › raspberry-gpio-python
raspberry-gpio-python download | SourceForge.net
Download raspberry-gpio-python for free. A Python module to control the GPIO on a Raspberry Pi. To get started with RPi.GPIO, it would be worthwhile reading the examples in the project wiki (link above). Note that this module is unsuitable for real-time or timing critical applications.
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › using the raspberry pi › beginners
RPi.GPIO - Raspberry Pi Forums
Mon Aug 14, 2023 3:46 pm I was trying to pip install RPi.GPIO so that I can use it in my pulse logger program, In what context are you trying to install and use this library? Looking at your transcript I see references to - ... build\lib.win-amd64-cpython-311\RPi\GPIO Are you running on a Windows/'Intel' platform?
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › education › staffroom, classroom and projects
Installing RPi.Gpio for python - Raspberry Pi Forums
According to the wiki (http://elinux.org/Rpi_Low-level_periphe ... er_support) "The RPi.GPIO module is installed by default in Raspbian. Any Python script that controls GPIO must be run as root." As for connecting the Pi to the internet to download software, upgrades etc.
🌐
Raspberry Pi Forum
forum-raspberrypi.de › deutsches raspberry pi forum › programmierung › python
RPi.GPIO unter Windows Python installieren - Python - Deutsches Raspberry Pi Forum
November 2, 2017 - Das Modul RPi.GPIO-0.6.3.tar habe ich also mittlerweile bereits heruntergeladen. ... Aber hör auf bootsmann vergiss das Modul und fange gleich mit gpiozero an. ... generell ist eine Installation über pip zu bevorzugen, man kann kaum was falsch machen und pip kümmert sich auch um Abhängigkeiten und Co. pip gibt es auch unter Windows, zu finden in c:\Pythonxx\Scripts