[Numpy-discussion] numpy for Python 3?
Dave
dave.hirschfeld@gmail....
Mon Jul 19 07:37:30 CDT 2010
Richard D. Moores <rdmoores <at> gmail.com> writes:
>
> On Mon, Jul 19, 2010 at 04:49, Alan G Isaac <aisaac <at> american.edu> wrote:
> > On 7/19/2010 7:33 AM, Richard D. Moores wrote:
> >> 'python3' is not recognized as an internal or external command,
> >> operable program or batch file.
> >
> > C:\Python31>dir *.exe
> > Volume in drive C has no label.
> > Volume Serial Number is 1464-2B08
> >
> > Directory of C:\Python31
> >
> > 03/20/2010 10:58 PM 27,136 python.exe
> > 03/20/2010 11:01 PM 27,648 pythonw.exe
> > 2 File(s) 54,784 bytes
> > 0 Dir(s) 185,158,647,808 bytes free
> >
> >
> > C:\Python31>python.exe
> > Python 3.1.2 (r312:79149, Mar 20 2010, 22:55:39)
> > [MSC v.1500 64 bit (AMD64)] on
> > win32
> > Type "help", "copyright", "credits" or "license" for more information.
> >>>> exit()
>
> c:\Python31>python.exe
> ActivePython 3.1.2.3 (ActiveState Software Inc.) based on
> Python 3.1.2 (r312:79147, Mar 22 2010, 12:30:45) [MSC v.1500 64 bit
> (AMD64)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
>
> Now what? "Try simple commands"? Like "Lemme outta here!"?
>
> Dick
You're 90% of the way there. Now you know that the Python3 "program" is called
python.exe and is in the C:\Python31 directory.
All you need to do now is compile numpy with the Python3 program. You do this
by calling the program with the name of the script (setup.py) you want to run
which itself takes an argument telling it what you want to do - e.g.
build/install/bdist_wininst.
The commands should therefore be:
cd c:\SVNRepository\numpy
C:\Python31>python setup.py bdist_wininst
Assuming you have a C compiler on your system (and in your path) this will
then build numpy and create an windows installer (the bdist_wininst
argument passed to setup.py) in the dist directory which you can then use
to install numpy.
HTH,
Dave
More information about the NumPy-Discussion
mailing list