• 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

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 pip3 / pip2 In Linux

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!!!

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

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)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

How to empty Trash through command line in Ubuntu

Keep logs of user after sudo su – : Secondary Logging

safest method to remove softlink in linux

Read the file inside compressed .gz files without extract

How to hide php version information in header

Learn Linux Date Command With Examples

Terminal Recording with script and scriptreplay command

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

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