<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Here's a good article on the vagaries of python paths when installing a new python.  Thus you can check exactly how python finds its modules, to assure the new install is working properly:<div><br></div><div><a href="https://www.usenix.org/publications/login/august-2012-volume-37-number-4/import">https://www.usenix.org/publications/login/august-2012-volume-37-number-4/import</a><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><br class="Apple-interchange-newline"><table cellspacing="0" cellpadding="0" style="border-collapse: collapse; "><tbody><tr><td valign="top" style="border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; border-top-color: rgb(0, 0, 0); border-right-color: transparent; border-bottom-color: rgb(0, 0, 0); border-left-color: transparent; padding-top: 0px; padding-right: 5px; padding-bottom: 0px; padding-left: 5px; "><p style="margin-top: 6px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: center; font: normal normal normal 11.5px/normal 'Times New Roman'; "><span style="font: normal normal normal 12px/normal Arial; "></span></p><div style="border-collapse: separate; "><font class="Apple-style-span" face="Futura" color="#7c007e">John Mark Agosta</font></div><div style="border-collapse: separate; "><font class="Apple-style-span" face="Menlo"><span class="Apple-style-span" style="font-size: 11px; "><a href="mailto:jmagosta@us.toyota-itc.com">jmagosta@us.toyota-itc.com</a></span></font></div><div style="border-collapse: separate; font-family: Helvetica; font-size: medium; "></div><p></p><p style="margin-top: 6px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: center; font: normal normal normal 11.5px/normal 'Times New Roman'; "><span style="font: normal normal normal 12px/normal Arial; "> </span><font class="Apple-style-span" face="Futura" size="2" color="#3a0094"><span style="font: normal normal normal 11.5px/normal Arial; ">TOYOTA<span class="Apple-converted-space"> </span></span>InfoTechnology Center USA</font></p><p style="margin-top: 6px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: center; font: normal normal normal 11.5px/normal 'Times New Roman'; "><font class="Apple-style-span" color="#3a0094" face="Menlo" style="font-size: 11px; "><a href="http://www.us.toyota-itc.com">www.us.toyota-itc.com</a></font></p><p style="margin-top: 6px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: center; font: normal normal normal 11.5px/normal 'Times New Roman'; "><font class="Apple-style-span" face="Futura" size="2" color="#3a0094">465 Bernardo Avenue, Mountain View, CA 94043 </font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 6px; margin-left: 0px; text-align: center; font: normal normal normal 11px/normal 'Times New Roman'; "><font class="Apple-style-span" face="Futura" size="2" color="#3a0094">Phone: (650) 694-4150 Fax: (650) 694-4901 </font></p></td></tr></tbody></table></div><div><br></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>On Aug 6, 2012, at 2:07 PM, Alex Clark wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 8/6/12 5:48 AM, Scott Sinclair wrote:<br><blockquote type="cite">On 6 August 2012 11:04, Petro <<a href="mailto:x.piter@gmail.com">x.piter@gmail.com</a>> wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">This is a general python question but I will ask it here. To<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">install a new numpy on Debian testing I remove installed version with<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">"aptitude purge python-numpy" download numpy source code and install<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">numpy with "sudo python setup.py install".  If I want to remove the installed<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">numpy how do I proceed?<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Assuming your system Python is 2.7, your numpy should have been<br></blockquote><blockquote type="cite">installed in /usr/local/lib/python2.7/site-packages/ (or<br></blockquote><blockquote type="cite">/usr/local/lib/python2.7/dist-packages/ as on Ubuntu?)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">So something along these lines:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">$ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy/<br></blockquote><blockquote type="cite">$ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy-*.egg*<br></blockquote><blockquote type="cite">$ sudo rm -rf /usr/local/bin/f2py<br></blockquote><br><br>Or if you have pip installed (easy_install pip) you can:<br><br>$ pip uninstall numpy<br><br>(it will uninstall things it hasn't installed, which I think should <br>include the console_script f2py?)<br><br><br>Alex<br><br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">Cheers,<br></blockquote><blockquote type="cite">Scott<br></blockquote><blockquote type="cite"><br></blockquote><br><br>-- <br>Alex Clark · <a href="http://pythonpackages.com/ONE_CLICK">http://pythonpackages.com/ONE_CLICK</a><br><br>_______________________________________________<br>NumPy-Discussion mailing list<br><a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>http://mail.scipy.org/mailman/listinfo/numpy-discussion<br></div></blockquote></div><br></div></body></html>