<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi, <div><br></div><div>I have installed python2.6 in my local dir. </div><div><br></div><div>But, when I used <span style="background-color: rgb(255, 248, 237); font-family: courier, monospace; font-size: 12px; line-height: 16.78333282470703px; white-space: pre-wrap; ">python setup.py install --user to install numpy , I got:</span></div><div><font face="courier, monospace"><span style="font-size: 12px; line-height: 16.766666412353516px; white-space: pre-wrap;"><br></span></font></div><div><font face="courier, monospace"><span style="font-size: 12px; line-height: 16.766666412353516px; white-space: pre-wrap;"><div>$ python setup.py install --user</div><div>'import site' failed; use -v for traceback</div><div>Traceback (most recent call last):</div><div> File "setup.py", line 18, in <module></div><div> import os</div><div>ImportError: No module named os</div><div><br></div><div>in python2.6 I got:</div><div><br></div></span></font><div><div>>>> import os</div><div>Traceback (most recent call last):</div><div> File "<stdin>", line 1, in <module></div><div>ImportError: No module named os</div></div><div><br></div>Any help will be appreciated. </div><div><br></div><div>thanks<br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: dtustudy68@hotmail.com<br>To: numpy-discussion@scipy.org<br>Date: Thu, 25 Oct 2012 06:32:05 -0600<br>Subject: Re: [Numpy-discussion] error of install numpy on linux redhat.<br><br>
<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
--></style>
<div dir="ltr">
<div>Thanks for your invitation. </div><div><br></div>I cannot use rpm command because I am not root user and cannot get sys-adm authorization. <div><br></div><div>Any help will be appreciated. </div><div><br></div><div>Thanks<br><br><div><div id="ecxSkyDrivePlaceholder"></div><hr id="ecxstopSpelling">Date: Thu, 25 Oct 2012 08:05:47 +0200<br>From: ralf.gommers@gmail.com<br>To: numpy-discussion@scipy.org<br>Subject: Re: [Numpy-discussion] error of install numpy on linux redhat.<br><br><br><br><div class="ecxgmail_quote">On Thu, Oct 25, 2012 at 6:01 AM, Jack Bryan <span dir="ltr"><<a href="mailto:dtustudy68@hotmail.com">dtustudy68@hotmail.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
Hi, All, <div><br></div><div>I am trying to install numpy from <a href="http://www.scipy.org/Download" style="font-size:10pt" target="_blank">http://www.scipy.org/Download</a> . </div><div><br></div><div>by </div><div><br>
</div><div><pre style="padding:5px;font-family:courier,monospace;white-space:pre-wrap;word-wrap:break-word;background-color:rgb(255,248,237);font-size:12px;line-height:16.78333282470703px">git clone git://<a href="http://github.com/numpy/numpy.git" target="_blank">github.com/numpy/numpy.git</a> numpy</pre></div><div><br></div><div>But, when I ran </div><div><br></div><div>python setup.py install</div><div><br>
</div><div>I got:</div><div><br></div><div>SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel</div><div><br></div><div>Where to get <span style="font-size:10pt">python-dev ? </span></div>
</div></div></blockquote><div><br>If you're on OS X you have to install XCode, preferably with the optional SDKs for previous platforms.<br><br>On Linux you can install python-dev or similar with your package manager.<br>
<br>Ralf<br><br></div><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr"><div><span style="font-size:10pt"><br></span></div><div><span style="font-size:10pt">I tried:</span></div>
<div><span style="font-size:10pt"><br></span></div><div><span style="font-size:10pt"><div>$ easy_install python-devel</div><div>Searching for python-devel</div><div>Reading <a href="http://pypi.python.org/simple/python-devel/" target="_blank">http://pypi.python.org/simple/python-devel/</a></div>
<div>Couldn't find index page for 'python-devel' (maybe misspelled?)</div><div>Scanning index of all packages (this may take a while)</div><div>Reading <a href="http://pypi.python.org/simple/" target="_blank">http://pypi.python.org/simple/</a></div>
<div>No local packages or download links found for python-devel</div><div>error: Could not find suitable distribution for Requirement.parse('python-devel')</div><div><br></div><div>and </div><div><br></div><div><div>
$ easy_install python-dev</div><div>Searching for python-dev</div><div>Reading <a href="http://pypi.python.org/simple/python-dev/" target="_blank">http://pypi.python.org/simple/python-dev/</a></div><div>Couldn't find index page for 'python-dev' (maybe misspelled?)</div>
<div>Scanning index of all packages (this may take a while)</div><div>Reading <a href="http://pypi.python.org/simple/" target="_blank">http://pypi.python.org/simple/</a></div><div>No local packages or download links found for python-dev</div>
<div>error: Could not find suitable distribution for Requirement.parse('python-dev')</div></div><div><br></div><div><br></div><div><br></div></span></div> </div></div>
<br>_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
<br></blockquote></div><br>
<br>_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion</div></div> </div>
<br>_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion</div></div> </div></body>
</html>