Petro | 6 Aug 2012 11:04
Picon

how to uninstall numpy

Hi list
This is a general python question but I will ask it here. To
install a new numpy on Debian testing I remove installed version with
"aptitude purge python-numpy" download numpy source code and install
numpy with "sudo python setup.py install".  If I want to remove the installed
numpy how do I proceed?
Thanks.
Petro
Scott Sinclair | 6 Aug 2012 11:48
Picon
Gravatar

Re: how to uninstall numpy

On 6 August 2012 11:04, Petro <x.piter <at> gmail.com> wrote:
> This is a general python question but I will ask it here. To
> install a new numpy on Debian testing I remove installed version with
> "aptitude purge python-numpy" download numpy source code and install
> numpy with "sudo python setup.py install".  If I want to remove the installed
> numpy how do I proceed?

Assuming your system Python is 2.7, your numpy should have been
installed in /usr/local/lib/python2.7/site-packages/ (or
/usr/local/lib/python2.7/dist-packages/ as on Ubuntu?)

So something along these lines:

$ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy/
$ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy-*.egg*
$ sudo rm -rf /usr/local/bin/f2py

Cheers,
Scott
Alex Clark | 6 Aug 2012 20:07
Favicon
Gravatar

Re: how to uninstall numpy

On 8/6/12 5:48 AM, Scott Sinclair wrote:
> On 6 August 2012 11:04, Petro <x.piter <at> gmail.com> wrote:
>> This is a general python question but I will ask it here. To
>> install a new numpy on Debian testing I remove installed version with
>> "aptitude purge python-numpy" download numpy source code and install
>> numpy with "sudo python setup.py install".  If I want to remove the installed
>> numpy how do I proceed?
>
> Assuming your system Python is 2.7, your numpy should have been
> installed in /usr/local/lib/python2.7/site-packages/ (or
> /usr/local/lib/python2.7/dist-packages/ as on Ubuntu?)
>
> So something along these lines:
>
> $ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy/
> $ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy-*.egg*
> $ sudo rm -rf /usr/local/bin/f2py

Or if you have pip installed (easy_install pip) you can:

$ pip uninstall numpy

(it will uninstall things it hasn't installed, which I think should 
include the console_script f2py?)

Alex

>
> Cheers,
> Scott
(Continue reading)

Scott Sinclair | 7 Aug 2012 09:19
Picon
Gravatar

Re: how to uninstall numpy

On 6 August 2012 20:07, Alex Clark <aclark <at> aclark.net> wrote:
> On 8/6/12 5:48 AM, Scott Sinclair wrote:
>> On 6 August 2012 11:04, Petro <x.piter <at> gmail.com> wrote:
>>> This is a general python question but I will ask it here. To
>>> install a new numpy on Debian testing I remove installed version with
>>> "aptitude purge python-numpy" download numpy source code and install
>>> numpy with "sudo python setup.py install".  If I want to remove the installed
>>> numpy how do I proceed?
>>
>> Assuming your system Python is 2.7, your numpy should have been
>> installed in /usr/local/lib/python2.7/site-packages/ (or
>> /usr/local/lib/python2.7/dist-packages/ as on Ubuntu?)
>>
>> So something along these lines:
>>
>> $ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy/
>> $ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy-*.egg*
>> $ sudo rm -rf /usr/local/bin/f2py
>
>
> Or if you have pip installed (easy_install pip) you can:
>
> $ pip uninstall numpy
>
> (it will uninstall things it hasn't installed, which I think should
> include the console_script f2py?)

Unfortunately that won't work in this case. If pip wasn't used to
install the package it has no way know what's been installed. That
information is stored in
(Continue reading)

John Mark Agosta | 7 Aug 2012 16:48

Re: how to uninstall numpy

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:

https://www.usenix.org/publications/login/august-2012-volume-37-number-4/import

John Mark Agosta

 TOYOTA InfoTechnology Center USA

www.us.toyota-itc.com

465 Bernardo Avenue, Mountain View, CA 94043 

Phone: (650) 694-4150 Fax: (650) 694-4901 





On Aug 6, 2012, at 2:07 PM, Alex Clark wrote:

On 8/6/12 5:48 AM, Scott Sinclair wrote:
On 6 August 2012 11:04, Petro <x.piter <at> gmail.com> wrote:
This is a general python question but I will ask it here. To
install a new numpy on Debian testing I remove installed version with
"aptitude purge python-numpy" download numpy source code and install
numpy with "sudo python setup.py install".  If I want to remove the installed
numpy how do I proceed?

Assuming your system Python is 2.7, your numpy should have been
installed in /usr/local/lib/python2.7/site-packages/ (or
/usr/local/lib/python2.7/dist-packages/ as on Ubuntu?)

So something along these lines:

$ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy/
$ sudo rm -rf /usr/local/lib/python2.7/site-packages/numpy-*.egg*
$ sudo rm -rf /usr/local/bin/f2py


Or if you have pip installed (easy_install pip) you can:

$ pip uninstall numpy

(it will uninstall things it hasn't installed, which I think should
include the console_script f2py?)


Alex



Cheers,
Scott



--
Alex Clark · http://pythonpackages.com/ONE_CLICK

_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion <at> scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion <at> scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
x.piter | 9 Aug 2012 10:04
Picon

Re: how to uninstall numpy

Thanks to everybody.
Chris Barker | 9 Aug 2012 18:36
Picon
Favicon

Re: how to uninstall numpy

It depends a bit on how you installed it, but for the most part you
should simiply be able to delete the numpy directory in site_packages.

-Chris

On Thu, Aug 9, 2012 at 1:04 AM,  <x.piter <at> gmail.com> wrote:
> Thanks to everybody.
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion <at> scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

--

-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker <at> noaa.gov

Gmane