To fix this, you need to install the python-dev package using:
#sudo apt-get install python-dev
#sudo apt-get install python-docutils
As easy as one, two three …
#sudo add-apt-repository ppa:mercurial-ppa/releases
#sudo apt-get update
#sudo apt-get install mercurial
Step 1: Open Aptana Studio.
Step 2: Click on Help > Install New Software > Click on Add button (next to ‘work with :’ label)
Name: Eclipse Update Site for MercurialEclipse
Step 3: Check MercurialEclipse and Click ‘Next’
Step 4: Uncheck ‘Windows Binaries for Mercurial (Recommended) 1.9.3.v201110131844’ and Click ‘Next’
Step 5: Nothing to do on this screen and Click ‘Next’
Step 5: Check against I agree and Click ‘Finish’
And we are done.