I have tried to do a sudo apt-get install python-dev however I get this,
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python
E: Package 'python-dev' has no installation candidate
I am not sure what is going wrong, although I have altered my source.list file as I was upgrading GCC to 4.8 and here is my source file.
#deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspbian.org/raspbian/ wheezy main contrib non-free rpi
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
deb http://archive.raspbian.org/raspbian wheezy main contrib non-free rpi
# Source repository to add
deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free rpi
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://archive.raspbian.org/raspbian jessie main contrib non-free rpi
# Source repository to add
deb-src http://archive.raspbian.org/raspbian jessie main contrib non-free rpi
My ultimate goal is to try and install the unqlite python module however, I get an error saying that python.h is not found or is not in directory, so I decided to google around and found that I had to install python-dev however this did not work
python
andpython-dev
are two different packages. That message just means that Python 2.7 will remove dev files from Python 2.6 and earlier versions. – Dmitry Grigoryev Jan 18 '17 at 10:00