title: error of install numpy on linux red hat
body: <p>I am trying to install numpy  from <a href="http://www.scipy.org/Download" rel="nofollow noreferrer">http://www.scipy.org/Download</a> . </p>
  
  <p>by <code>git clone git://github.com/numpy/numpy.git numpy</code></p>
  
  <p>But, when I ran <code>python setup.py install</code></p>
  
  <p>I got:</p>
  
  <p><code>SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel</code></p>
  
  <p>Where to get python-dev ? </p>
  
  <p>I tried:</p>
  
  <pre><code>$ easy_install python-devel
  Searching for python-devel
  Reading http://pypi.python.org/simple/python-devel/
  Couldn't find index page for 'python-devel' (maybe misspelled?)
  Scanning index of all packages (this may take a while)
  Reading http://pypi.python.org/simple/
  No local packages or download links found for python-devel
  error: Could not find suitable distribution for Requirement.parse('python-devel')
  </code></pre>
  
  <p>and </p>
  
  <pre><code>$ easy_install python-dev
  Searching for python-dev
  Reading http://pypi.python.org/simple/python-dev/
  Couldn't find index page for 'python-dev' (maybe misspelled?)
  Scanning index of all packages (this may take a while)
  Reading http://pypi.python.org/simple/
  No local packages or download links found for python-dev
  error: Could not find suitable distribution for Requirement.parse('python-dev')
  </code></pre>
  
  <p>Any help will be appreciated. </p>
  
  <p>In order to solve the problem of python-dev, I have installed python2.6 in my local dir. </p>
  
  <p>But, when I used python setup.py install --user to install numpy , </p>
  
  <p>I got: </p>
  
  <p>$ python setup.py install --user </p>
  
  <p>'import site' failed; </p>
  
  <p>use -v for traceback Traceback (most recent call last): File "setup.py", line 18, </p>
  
  <p>in  import os ImportError: </p>
  
  <p>No module named os </p>
  
  <p>in python2.6 </p>
  
  <p>I got: >>> import os Traceback (most recent call last): File "", line 1, in  ImportError: No module named os </p>
  
  <p>Any help will be appreciated. thanks</p>
  
  <p>The following links are not helpful because I do not have root right and cannot use sudo.</p>
  
  <p><a href="https://stackoverflow.com/questions/11073695/why-does-installing-numpy-require-python-dev-in-kubuntu-12-04">example1</a></p>
  
  <p><a href="https://stackoverflow.com/questions/2546676/how-to-install-python2-6-devel-package-under-centos-5">example2</a></p>