• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Python headers are required to build Mercurial but weren’t found

August 18, 2015 by Sharad Chhetri 3 Comments

While installing Readthedocs package inside Virtual Environement on Ubuntu 14.04 LTS , I found this error “Python headers are required to build Mercurial but weren’t found in /usr/include/python2.7/Python.h” . It seems the dependency issue with header files for python.

So what should be fix for this issue. It is very simple, we have to installed the python-dev package .

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

Now try installing the packages again, I hope it will fix your issue too.

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory
  2. Nginx : could not build the server_names_hash, you should increase server_names_hash_bucket_size
  3. How to list all installed python modules
  4. Remove python module installed from source code on Linux
  5. AttributeError: ‘WSGIRequest’ object has no attribute ‘session’ Django python web framework
  6. Ansible /bin/sh: 1: /usr/bin/python: not found
  7. error command ‘gcc’ failed with exit status 1 in Ubuntu
  8. How To Install pip On CentOS / RHEL / Ubuntu / Debian

Filed Under: Linux Tagged With: python

Reader Interactions

Comments

  1. David says

    February 4, 2020 at 5:11 pm

    Did not work, waste of time

  2. Chris says

    September 27, 2018 at 9:37 pm

    Note that for RedHat/Centos, it’s yum install python-devel

  3. Pit Belon says

    January 9, 2017 at 3:30 pm

    Thank you, it is very helpful for me!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Commands

group ownership reference to file/dir from other file/dir in linux

How to extract RPM package on Linux system

print working directory ( pwd , PWD , OLDPWD ) in Linux / Unix

smbpasswd command not found on CentOS 7 and RHEL 7

type Command : Display Information About Command Type On Linux

learn very useful alias command with examples

Force linux user to change password upon login

Explore 70+ Articles On Linux Commands

Always Useful Tips And Tricks

sed: -e expression #1, char 24: Invalid range end

Learn Linux Date Command With Examples

How to zip the directory in linux with command line

rsync all files,hidden files,symlinks,hardlinks to remotes Linux Server

How to forcefully send mail from mailq in sendmail MTA

set and unset line number in file with vi editor

How to increase Password Expire date without resetting the password

Explore 90+ Article On "Linux Tips And Tricks"

You Might Like These Articles!

Internal External Command

What is Linux/Unix Internal And External Command

Linux basic command

Linux Basic Commands With Examples For Every Beginner

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission but Schools and Colleges can do in their Private Network
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy