Ubuntu under Python version update problem

Source: Internet
Author: User

never delete the system default Python!!! under/usr/bin Remember.

The Ubuntu10.04 lts version is used, with Python 2.6.5. A few days ago preface, the Python upgrade to 2.7.3.

#./configure--prefix=/usr/local/python2.7 # make
# make install

# cd/usr/bin
# ln-sf/usr/local/bin/ Python python

Everything's fine. Wow, there's no problem.

But, however, I did the evil thing of a step

Ln-sf/usr/local/bin/python python2.6

This is the step wow, put me on the point of no return, the system can not use a variety of functions, such as the Ubuntu Software Center. Apt-get upgrade also have problems, suggesting that the Python version does not match, and changes to the default version. But I have removed the python2.6 to cover.

I thought to switch to 2.6 on the line, download the 2.6.8,2.6.5 compile installation is not good, it seems only to find the original python2.6, but also fortunately I had installed 10.04 of the virtual machine, copied from the above to solve the problem.

so again, do not delete the/usr/bin under the pythonx.x, never move it. It's best to back it up.


~end~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.