You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got it to work today in Python3 without problems, here is what I did:
$ python
Python 3.5.1 (default, Dec 11 2015, 05:35:45)
[GCC 5.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import RPi.GPIO as GPIO
BAPI: revision(2)
>>>
Very old post , but could not find a solution. I managed to install the library as easilly under Python3.8 as I did under Python2.7. (following above instructions). Using a BananaPi M2+. The most basic of codes (read an input an print the result), works fine under 2.7 and not under 3.8. It only reads "0". Any idea? Thanks much !
This works only in python 2.7?
In 3.4 I get:
>>> import RPi.GPIO Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named 'RPi'
The text was updated successfully, but these errors were encountered: