I hate to play the annoying dull person who doesn't have a clue what he is talking about. But, unfortunately, that's me as far as linux is concerned...
I'm doing some file manipulations in python that use the zipfile module. The version of python currently installed is 2.4.3, but the zipfile module utilizes 'with' statements, which I think came out in version 2.5 (I'm also going to need to use the tarfile module; although I haven't tested it, I imagine I'll run into the same problem).
My current plan of action is to figure out how to upgrade the python installation. But, knowing absolutely nothing about linux and very little about python, I don't even know where to start. I look at some similar posts, which mentioned installing it in another directory. I didn't install it in the first place though. I don't even know how to install stuff in linux...
Any help would be greatly appreciated! Also, if there's a better way than trying to update python, I'm totally open to suggestions. Just remember: my linux intelligence is about equivalent to that of a four-year-old. Thanks!
zipfile,tarfileare in stdlib. So the version that comes with Python 2.4 must work as is i.e., it doesn't usewithstatement. If you need a newer version of Python for some other reason then you could use your distribution packages to install it (as an addition, not a replacement) e.g.,sudo apt-get install python3.2. Don't touch your default Python installation it might break things. – J.F. Sebastian May 24 '12 at 15:20