PDA

View Full Version : How to update Python to get math.gamma



skytreader
September 18th, 2011, 09:01 AM
Hi. I need to use the gamma function in a Python script. However, the installations in my machine (Lucid Lynx) doesn't seem to have the documented gamma function. I have 2.6.5 and 3.1.2 installed.

I tried doing `sudo apt-get update && sudo apt-get upgrade` but to no avail---it seems that the only update I got is Google Chrome's. How do I update Python?

Thanks!

JDShu
September 18th, 2011, 09:42 AM
This appears to be the ppa:

https://launchpad.net/~pythoneers/+archive/lts (https://launchpad.net/%7Epythoneers/+archive/lts)