Skip to content

IT Blog

Vyacheslav Gapon – personal blog, manuals, articles, notes, development

  • РусскийРусский

Solution for the error “Python headers are required to build Mercurial but weren’t found”

Posted byVyacheslav 01.11.201901.11.2019 Leave a comment on Solution for the error “Python headers are required to build Mercurial but weren’t found”

I once installed Mercurial and noticed the following error:

ERROR:
Python headers are required to build Mercurial but weren’t found in /usr/include/python2.7/Python.h

To solve this error, install python-dev, for example in Ubuntu it can be done like this:

sudo apt-get update
sudo apt install python-dev python-docutils gcc

In CentOS, like this:

sudo yum install python-devel gcc
  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • More
  • Click to share on Pocket (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to print (Opens in new window)
Posted byVyacheslav01.11.201901.11.2019Posted inLinux

Post navigation

Previous Post Previous post:
Asterisk. Solution “Not accepting call completion offers from call-forward recipient Local”
Next Post Next post:
Configuring BDCOM GP3600

Leave a comment

Leave a Reply Cancel reply

Categories

Contacts
DONATE
About it
Privacy
Subscribe by Email (EN)
Подписаться по Email (RU)
YouTube
Instagram

При использовании материалов, активная ссылка на сайт ixnfo.com обязательна!
When using materials, an active link to ixnfo.com is required!

IT Blog © 2013-2023 Privacy Policy