title: Python - Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-21ft0H/pandas
body: <p>I'm using Centos 7 and Python 2.7.5. The problem is when I install Pandas, i got this error message</p>
  
  <pre><code>SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
  
      ----------------------------------------
  Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-21ft0H/pandas
  </code></pre>
  
  <p>I already tried a lot of solutions but no success even <code>yum -y update</code>.</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/17886647/cant-install-via-pip-because-of-egg-info-error">Can&#39;t install via pip because of egg_info error</a></li>
  <li><a href="https://stackoverflow.com/questions/11425106/python-pip-install-fails-invalid-command-egg-info">Python pip install fails: invalid command egg_info</a></li>
  <li><a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4" rel="nofollow noreferrer">https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4</a></li>
  <li><a href="https://stackoverflow.com/questions/31719816/pip-fails-to-install-anything-error-invalid-command-egg-info">pip fails to install anything, error: invalid command &#39;egg_info&#39;</a></li>
  </ul>