Replace the Python version that comes with Ubuntu

Source: Internet
Author: User

First download the various versions of Python you want to use here, I'm using 2.7.11:https://www.python.org/ftp/python/.

Still the same way:./configure---

Next, replace your own version with your own: which python to see your Python path:/usr/local/bin

Then switch the path: Cd/usr/local/bin

[Email protected]:/usr/local/bin# ls python

Python python2 python2.7 python2.7-config python2-config python-config

Note: The first Python is a library file that is automatically connected to the system, which is the Python version of Python running.

Make a link: [Email protected]:/usr/local/bin# ln-s/usr/local/bin/python2.7/usr/bin/python

Okay, OK.

Replace the Python version that comes with Ubuntu

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.