[Numpy-discussion] numpy for Python 3?

Vincent Schut schut at sarvision.nl
Mon Jul 19 08:28:35 EDT 2010



On 07/19/2010 02:08 PM, Richard D. Moores wrote:
> 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.
>>
>> It's just ``python``.
>> hth,
>> Alan Isaac
>>
>> 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
>> 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
>> 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

Well, you might want to read up on some beginners guide for python? It's 
up to you, of course, but usually before starting with numpy (which 
extends python), it is advised to have at least some basic python 
understanding... Googling will give you plenty of good resources, if 
you'd like to.

Then, for the sake of helping you further anyway:
you'll have to mind the significance of paths (=directories or folders 
in windows speak I think). The folder you're currently in, will restrict 
what you find when typing commands. If you need to reference something 
from a different folder, you'll need to explicitly specify that.

To build numpy, you'll need to be in the numpy source folder (the numpy 
you extracted from svn). But if you're there, simply typing 'python' or 
'python.exe' will probably not work because 'python.exe' is in a 
different folder (c:\Python31). You could go into that folder, but then 
you would not be able to find numpy's setup.py script. Best way to solve 
that: make sure you're in the numpy folder, and type something like: 
'c:\Python31\python.exe setup.py build'. That should get you started at 
least.

However, if I'm allowed to give you some unaskedfor advice: this might 
become lots easier if you make sure you're at least a bit comfortable 
with 1) the windows command prompt, 2) python, and 3) building python 
stuff from svn source checkouts. No offence meant. But you sound as you 
feel a lot more comfortable with pre-built packages compared to building 
yourself from source on windows...

Good luck anyway!
Vincent Schut.
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion




More information about the NumPy-Discussion mailing list