Serving the Quantitative Finance Community

 
User avatar
MCarreira
Topic Author
Posts: 64
Joined: January 1st, 1970, 12:00 am

Help: NumPy and SciPy for Python 3.2 (Mac)

April 11th, 2011, 5:53 am

I've started using Python for manipulating txt files before loading them in Mathematica, but now I want to use it for writing some programs that I'll publish (Python code is readable enough for that), like the calculation of the new reference interest rates that we developed (TJ3 and TJ6, also known as the brazilian LIBORs).I've followed the suggestion to use 3.2 (Idle), but after I downloaded the packages for NumPy and SciPy, the installation process stopped (wrong version of Python).I've searched the obvious places, but I found no simple answers.Can anyone help ? I'm using a MacBookPro Core2Duo, SnowLeopard 10.6.Thanks,MCarreira
 
User avatar
afoster
Posts: 5
Joined: July 14th, 2002, 3:00 am

Help: NumPy and SciPy for Python 3.2 (Mac)

April 11th, 2011, 11:41 am

Basically the 3x series of python is not greatly supported by the big libraries out there - better to stick with 2.6 or the newer 2.7 branches. Also IDLE is ok when you are learning, but on a mac you can't really beat TextMate.
 
User avatar
MCarreira
Topic Author
Posts: 64
Joined: January 1st, 1970, 12:00 am

Help: NumPy and SciPy for Python 3.2 (Mac)

April 11th, 2011, 11:48 am

Good to know that, thanks for the help !
 
User avatar
Hansi
Posts: 41
Joined: January 25th, 2010, 11:47 am

Help: NumPy and SciPy for Python 3.2 (Mac)

April 11th, 2011, 11:54 am

 
User avatar
MCarreira
Topic Author
Posts: 64
Joined: January 1st, 1970, 12:00 am

Help: NumPy and SciPy for Python 3.2 (Mac)

April 11th, 2011, 12:45 pm

Thanks, too much red (back to 2.6 I go).
 
User avatar
afoster
Posts: 5
Joined: July 14th, 2002, 3:00 am

Help: NumPy and SciPy for Python 3.2 (Mac)

April 11th, 2011, 12:54 pm

Also you may note in the install docs for numpy that it prefers an install of cpython from python.org, not the inbuilt mac python.
 
User avatar
MCarreira
Topic Author
Posts: 64
Joined: January 1st, 1970, 12:00 am

Help: NumPy and SciPy for Python 3.2 (Mac)

April 11th, 2011, 8:20 pm

Indeed, after the Algo Trading Summit I uninstalled 3.2, saw that the install still was not working, 2.7 didn't work either, but 2.6.6 did ... thanks again for the help.
 
User avatar
renorm
Posts: 1
Joined: February 11th, 2010, 10:20 pm

Help: NumPy and SciPy for Python 3.2 (Mac)

April 11th, 2011, 10:31 pm

Did anyone build it from the source for python 3.xx? Python 3 has been substantially improved. The latest SciPy for python 3.2 is available on Win, but the Debian release is 12 moths old and not for python 3.
Last edited by renorm on April 11th, 2011, 10:00 pm, edited 1 time in total.
 
User avatar
renorm
Posts: 1
Joined: February 11th, 2010, 10:20 pm

Help: NumPy and SciPy for Python 3.2 (Mac)

April 14th, 2011, 5:12 pm

Many unofficial packages for Win, including Numpy/Scipy for Python 3.2. Dev version of Matplotlib for Python 3.2 is available too.
 
User avatar
afoster
Posts: 5
Joined: July 14th, 2002, 3:00 am

Help: NumPy and SciPy for Python 3.2 (Mac)

April 15th, 2011, 6:51 am

<- sticks with 2.7, leads an easy life.