[Tutor] Python 3.2 Install Not Responding To Python Command!!

Rohan Sachdeva rsachdev at usc.edu
Thu Apr 28 10:26:54 CEST 2011


I know this was a while ago but you can add the ppa by going to the terminal
and typing:

sudo add-apt-repository ppa:irie/python3.2

then sudo apt-get update and sudo apt-get install python3.2

Rohan

On Sun, Apr 10, 2011 at 1:33 PM, Walter Prins <wprins at gmail.com> wrote:

>
>
> On 9 April 2011 19:45, Nevins Duret <duretn at bellsouth.net> wrote:
>
>> I can't thank you enough for your help.  Yes, I usually use the Synaptic
>> Package Manager, however in this case, Python version 3.2 is not on the
>> Synaptic package Manager.  This is why I chose to build it from source.  As
>> far as what I think is causing this when I go in the
>>
>
> No problem.
>
>
>> Terminal and type:
>>
>> sudo update-alternatives --install /usr/bin/python/python3.2 python
>> /opt/py32/bin/python3.2 1
>>
>> I get this as an error message:
>>
>> update-alternatives: renaming python link from /usr/bin/python to
>> /usr/bin/python/python3.2.
>> update-alternatives: warning: forcing reinstallation of alternative
>> /opt/py32/bin because link group python is broken.
>> update-alternatives: error: unable to make
>> /usr/bin/python/python3.2.dpkg-tmp a symlink to /etc/alternatives/python: No
>> such file or directory
>>
>
> I would expect that "update-alternatives" would have trouble (on the first
> line) because /usr/bin/python is not a link anymore (but instead a folder)
> based on your previous posts.
>
> So, please go and inspect the /usr/bin/python folder and see what if
> anything's inside.  If it's not empty you need to see what is in fact in it
> and hopefully get rid of it or move it out of the way. Once it's empty, then
> just delete the /usr/bin/python folder (you'll have to be root or use
> "sudo") and afterwards either recreate a link to the default python
> interpreter and/or try the update-alternatives command again. (To manually
> restore the default python link, first execute "which python2.6" which
> should output "/usr/bin/python2.6", then execute "sudo ln -s
> /usr/bin/python2.6 /usr/bin/python" which should restore the link to the
> default python.  After doing this "update-alternatives" should have less
> trouble redirecting the /usr/bin/python link.
>
> I however want to reiterate that your problems, especially fixing your OS,
> will be better dealt with on the Ubuntu community forums.
>
> Rohan, thanks for posting about that PPA, wasn't aware of it!
>
> Walter
>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110428/d89d75e9/attachment-0001.html>


More information about the Tutor mailing list