Numpy and Python

Go To StackoverFlow.com

3

I created a python .py with some sort methods. I'm using numpy so that I can use real arrays. My question is when I go to submit this file to my teacher, is there a dll or something i can include so that he will be able to run the program or will he have to install numpy himself? Is the .py file the only file I should have to commit? Thanks in advance for any tips.

   import numpy as np
2012-04-04 03:12
by TMan
http://www.logix4u.net/component/content/article/27-tutorials/44-how-to-create-windows-executable-exe-from-python-scrip - 0x90 2012-04-04 03:16
Do you actually need numpy? I would rather submit a self-contained example (that is, only using Python core and stdlib) - Niklas B. 2012-04-04 03:35
yea its a pain working with arrays tho. numpy makes it a million times easier for arrays and I can use the built in min max average and sort for some of my method - TMan 2012-04-04 03:41
@ZoZo123 it seems py2exe only wants to work with python vs2.6, I have 3.2, does this sound right - TMan 2012-04-04 03:43


4

They need to install numpy from http://sourceforge.net/projects/numpy/files/ - just list this as a requrirement in the comments

2012-04-04 03:33
by Martin Beckett


0

if you're using *nix(linux or unix) system, you can use this command to let your teacher to install the numpy module : apt-get install python-numpy

2012-09-11 16:51
by jianpx
This will not work if the teacher is using redhat, as this is for debian-based systems (like ubuntu). It will also not work on any flavor of unix - Burhan Khalid 2013-05-23 05:08
Ads