Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #32342 > unrolled thread

Numpy module

Started byfarrellpolymath@gmail.com
First post2012-10-28 22:40 -0700
Last post2012-11-08 09:24 -0500
Articles 5 — 5 participants

Back to article view | Back to comp.lang.python


Contents

  Numpy module farrellpolymath@gmail.com - 2012-10-28 22:40 -0700
    Re: Numpy module Chris Rebert <clp2@rebertia.com> - 2012-10-28 23:00 -0700
    Re: Numpy module Benjamin Kaplan <benjamin.kaplan@case.edu> - 2012-10-29 09:39 -0700
    Re: Numpy module Anssi Saari <as@sci.fi> - 2012-11-08 15:09 +0200
      Re: Numpy module "Colin J. Williams" <cjw@ncf.ca> - 2012-11-08 09:24 -0500

#32342 — Numpy module

Fromfarrellpolymath@gmail.com
Date2012-10-28 22:40 -0700
SubjectNumpy module
Message-ID<5a86d3fc-1dff-4119-bda9-aa6e631758d5@googlegroups.com>
Hello to the group!

I've learned a lot about Ubuntu just trying to install numpy for Python 3.2.3. I've finally managed to put it in the Python3.2 directory but when I try to import it, I still get there's "no module named numpy." There are other modules in the same directory, like 'email' and it imports fine.

Does Numpy 1.6.2 not run with Python 3.2.3?

Can anybody help? Thank you in advance.

Peter Farrell

[toc] | [next] | [standalone]


#32343

FromChris Rebert <clp2@rebertia.com>
Date2012-10-28 23:00 -0700
Message-ID<mailman.2994.1351490432.27098.python-list@python.org>
In reply to#32342
On Sun, Oct 28, 2012 at 10:40 PM,  <farrellpolymath@gmail.com> wrote:
> I've learned a lot about Ubuntu just trying to install numpy for Python 3.2.3. I've finally managed to put it in the Python3.2 directory but when I try to import it, I still get there's "no module named numpy." There are other modules in the same directory, like 'email' and it imports fine.

A. It properly belongs under "site-packages"
B. You ought to just install it using pip
(http://www.pip-installer.org ) or apt-get, rather than manually.

> Does Numpy 1.6.2 not run with Python 3.2.3?

They are compatible.
http://scipy.github.com/faq.html#do-numpy-and-scipy-support-python-3-x :
"The first release of NumPy to support Python 3 was NumPy 1.5.0."

Cheers,
Chris

[toc] | [prev] | [next] | [standalone]


#32396

FromBenjamin Kaplan <benjamin.kaplan@case.edu>
Date2012-10-29 09:39 -0700
Message-ID<mailman.3029.1351529182.27098.python-list@python.org>
In reply to#32342
On Sun, Oct 28, 2012 at 10:40 PM,  <farrellpolymath@gmail.com> wrote:
> Hello to the group!
>
> I've learned a lot about Ubuntu just trying to install numpy for Python 3.2.3. I've finally managed to put it in the Python3.2 directory but when I try to import it, I still get there's "no module named numpy." There are other modules in the same directory, like 'email' and it imports fine.
>
> Does Numpy 1.6.2 not run with Python 3.2.3?
>
> Can anybody help? Thank you in advance.
>
> Peter Farrell
> --

Numpy is written in C. You can't just drop the source code into a
folder. It has to be compiled against that version of Python. You
could do that yourself, or you could just run "sudo apt-get install
python3-numpy"

[toc] | [prev] | [next] | [standalone]


#32948

FromAnssi Saari <as@sci.fi>
Date2012-11-08 15:09 +0200
Message-ID<vg3ip9gp7gd.fsf@coffee.modeemi.fi>
In reply to#32342
farrellpolymath@gmail.com writes:

> Hello to the group!
>
> I've learned a lot about Ubuntu just trying to install numpy for Python 3.2.3. I've finally managed to put it in the Python3.2 directory but when I try to import it, I still get there's "no module named numpy." There are other modules in the same directory, like 'email' and it imports fine.
>
> Does Numpy 1.6.2 not run with Python 3.2.3?
>
> Can anybody help? Thank you in advance.

What's the goal of this exercise? Ubuntu packages Python 3 and Numpy so
all you need to do is install packages python3 and python3-numpy. 

[toc] | [prev] | [next] | [standalone]


#32952

From"Colin J. Williams" <cjw@ncf.ca>
Date2012-11-08 09:24 -0500
Message-ID<k7gfas$elj$1@theodyn.ncf.ca>
In reply to#32948
On 08/11/2012 8:09 AM, Anssi Saari wrote:
> farrellpolymath@gmail.com writes:
>
>> [snip]
>>
>> Does Numpy 1.6.2 not run with Python 3.2.3?
>>
It does on the Raspberry Pi, which uses a variant of Debian.

Colin W.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web