Issue
I am completely new to Python programming. As what I understand, if I want to install any python packages I need to use pip install
but seems like there are many troubles for me when downloading some packages.
I met this problem a few times with different kind of packages, at first I like to download the numpy
but it seems like something wrong with the wheel file but eventually I download that wheel file from "Unofficial Windows Binaries for Python Extension Packages".
Now again I am going to download another packages which is "RPI.GPIO", and below is the error I face in the command prompt which I think is similar like the problem I met from the numpy
installation.
I tried to search the packages on "Unofficial Windows Binaries for Python Extension Packages", but I can't find it I think it is not a common package.
Can anyone help me with this? and maybe give me a short explanation on how pip install
works?
Thanks in advance.
Solution
Add a dummy interface for RPI.GPIO, in order to try the code on laptop, or coding on laptop for GPIO. It does nothing, it just a dummy interface but it will not prompt any error when debugging on other machine other than Raspi.
Here is the reference: Create Fake RPI.GPIO
Answered By - Joshua Chan