User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 572
Joined: Sat Nov 02, 2013 2:06 pm

Installed Wrong Version of WiringPi How To Remove

Tue Jun 23, 2015 11:00 am

Hi;

As its says in the title I think I installed the wrong version of wiring Pi.

I followed the instruction here:
http://wiringpi.com/download-and-install/
and installed wiring pi from here:
git clone git://git.drogon.net/wiringPi

I checked the installation following the instruction on the download page and all seemed fine
I created a simple python program but keep getting the error:
ImportError: No module named wiringpi

I did a google search and found this:
https://www.linkedin.com/grp/post/43324 ... 8311174145

Have I installed the c version and not the Python version?

If so how do I remove the c version from my Pi?
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

User avatar
RaTTuS
Posts: 10563
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Installed Wrong Version of WiringPi How To Remove

Tue Jun 23, 2015 11:02 am

How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 572
Joined: Sat Nov 02, 2013 2:06 pm

Re: Installed Wrong Version of WiringPi How To Remove

Tue Jun 23, 2015 11:24 am

Thanks - is it safe to rm the directories that I already installed?
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

User avatar
DougieLawson
Posts: 39297
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Installed Wrong Version of WiringPi How To Remove

Tue Jun 23, 2015 3:18 pm

JonnyAlpha wrote:Thanks - is it safe to rm the directories that I already installed?
Don't bother, you need the C/C++ WiringPi libraries as a pre-requisite for the python stuff you're trying to install.

BTW, I wouldn't use the python WiringPi library, you'll get better support (it's more common) and easier results (because Ben Croston did a good job) with RPi.GPIO which is already included in the base code for a Raspbian (or NOOBS/Raspbian) install.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Beginners”