简体   繁体   中英

Pydev remote debugging “No Module”

I'm working with eclipse pydev-plugin for my python development. I got the remote debugger working and can also run my python script.

However, i cannot run the debugger with my remote modules:

import RPi.GPIO as GPIO
ModuleNotFoundError: No module named 'RPi'

Did i miss something?

Try:

import RPi.* as GPIO

And check whether you are able to import the library or not.If not do following steps for linux:

sudo apt-get install rpi.gpio
wget https://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.5.11.tar.gz
cd RPi.GPIO-0.5.11
sudo python setup.py install
cd ~
sudo rm -rf RPi.GPIO-0.*
```
For more information: https://www.raspberrypi-spy.co.uk/2012/05/install-rpi-gpio-python-library/


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