我使用的是Raspberry pi3 B型号,已经成功安装了RPI.GPIO库,使用了代码 pip install
或者 sudo apt-get install
。但是当我尝试执行 import RPI.GPIO
时,出现了错误。
ImportError: No module named RPI.GPIO
我应该怎么做?
感谢您提前的帮助。
import RPi.GPIO
。小写字母i。源代码见https://sourceforge.net/p/raspberry-gpio-python/wiki/BasicUsage/。
RPi
notRPI
- Peter Wood