简体   繁体   中英

No module named RPI error (even though it is installed)

I have recently installed RPi.GPIO into my pycharm library as well as my linux operating system, but it seems as though anytime I run a command, I receive an error that states:

Traceback (most recent call last): File "/home/jpxso/PycharmProjects/pythonProject/venv/Sweep.py", line 2, in import RPi.GPIO as GPIO ModuleNotFoundError: No module named 'RPi'

Try to use pip install RPi.GIPO . If that doesn't work, then try using the easy_install function in the console.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM