[Ubuntu-BD] Upgrading Python Version

maSnun masnun at gmail.com
Sun Aug 9 13:55:30 BST 2009


I have compiled from the source. Now I have python 2.6 in
/home/masnun/lib/python2.6/bin .

But when I type something like "python file.py", it uses the old version. Is
there any way to replace the old one ?
--
Abu Ashraf Masnun
Grad Student, BBA,
Khulna University.
http://masnun.com


On Sun, Aug 9, 2009 at 5:06 AM, Azim Charles <azim.charles at gmail.com> wrote:

> u can use "wget"
>
> suppose u r download ur file at /home/dw directory
>
> then command look like bellow
>
> cd /home/dw
>
> wget http://www.python.org/ftp/python/2.6/Python-2.6.tgz
>
> ##now compile and install the source (Sry u do not like but i have no way:(
> ..)
>
> Go to source directory and put bellow code
>
> tar zxvf Python-2.6.tgz
>
> then>>
> cd Python-2.6
> ./configure --prefix=/home/sofeng/lib/python2.6
> Then>>
> make
>
> then>>
> ./python
>
> then>>
> make test
>
> make install
>
> sorry it's really long step...
>
> or u can get help from below link which one for update by apt-get
>
> http://ubuntuforums.org/showthread.php?t=995050
>
>
>
> Thanks
>
>
>
> On Sun, Aug 9, 2009 at 2:53 PM, maSnun <masnun at gmail.com> wrote:
>
> > On my Ubuntu 8.10, I have Python 2.5. I want to upgrade to 2.6. Is there
> > any
> > way to install it without compiling from source ?
> >
> > I'd have liked a "sudo apt-get " like command.
> > --
> > Abu Ashraf Masnun
> > Grad Student, BBA,
> > Khulna University.
> > http://masnun.com
> > --
> > Ubuntu Bangladesh | http://ubuntu-bd.org
> > ubuntu-bd at lists.ubuntu.com
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd
> >
>
>
>
> --
> Azim Charles
> ------------------------------------------------
> Freelancer System Engineer(Network & OS)
> Open source Consultant (Ubuntu,Open solaris,vyatta router,ipcop)
> ~~Be Linux, Be Open Source,
>        ~~Get Freedom~~
> .................................................
> --
> Ubuntu Bangladesh | http://ubuntu-bd.org
> ubuntu-bd at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd
>


More information about the ubuntu-bd mailing list