lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

RPi install failure

Tue Jun 17, 2014 4:14 pm

Due to my corrupted SD card I have to install RPi again

this time it gives an error.

sudo python setup.py install

the error says. python.h is missing.

what? I check /usr/bin/python exists the python library exists, why python.h missing?

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

Re: RPi install failure

Tue Jun 17, 2014 5:04 pm

sudo apt-get install python{,3}-dev libpython{,3}-dev
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.

lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Re: RPi install failure

Sat Jun 21, 2014 3:34 pm

DougieLawson wrote:sudo apt-get install python{,3}-dev libpython{,3}-dev
I type in the exact command
it says
Unable to locate package libpython-dev
Unbale to locate package libpython3-dev

python{,3}-dev means python-dev and python3-dev?

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

Re: RPi install failure

Sat Jun 21, 2014 8:51 pm

Try
sudo apt-get install python2.7-dev python3.4-dev libpython2.7-dev libpython3.4-dev

Or try installing with
sudo aptitude
(Aptitude has a good search engine to let you find the package you need)
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 “Python”