title: How to install python-devel when using virtualenv
body: <p>Before asking my question, let me introduce my computing environment first.</p>
  
  <ul>
  <li>OS: Red Hat Enterprise Linux Server 6.5.</li>
  <li>Python: Python 2.6 (by rpm install), Python 2.7 (based on virtualenv)</li>
  </ul>
  
  <p>Question:</p>
  
  <p>I want to install a library that requires python-devel.  However, when using </p>
  
  <pre><code>    yum install python-devel
  </code></pre>
  
  <p>The system installs python-devel-2.6.*, because the installed (yum-packaged) python is version 2.6.  My question is , how to install python-devel that matches the version of the python in virtualenv (which is version 2.7 in my case).</p>
  
  <p>Thanks!</p>