Implementation of Python Multi-version installation practice under Linux

Source: Internet
Author: User
Using Pythonbrew

The code is as follows:


Easy_install Pythonbrew
[Root@li637-23 schirm]# Pythonbrew_install

well-done! congratulations!

The Pythonbrew is installed as:

/root/.pythonbrew

Add the following line to the end of your ~/.BASHRC

[-S "$HOME/.PYTHONBREW/ETC/BASHRC"]] && source "$HOME/.PYTHONBREW/ETC/BASHRC"

After then, exit this shell, start a new one, and install some fresh
Pythons:

Pythonbrew Install 2.7.2
Pythonbrew Install 3.2

For further instructions, run:

Pythonbrew Help

The default help messages would popup and tell you about do!

Enjoy Pythonbrew at/root/.pythonbrew!!
[Root@li637-23 schirm]# Vim/root/.pythonbrew
[Root@li637-23 schirm]#. ~/.bashrc
[root@li637-23 schirm]# pythonbrew Install 2.7.2
Downloading python-2.7.2.tgz as/root/.pythonbrew/dists/python-2.7.2.tgz
######################################################################## 100%
Extracting Python-2.7.2.tgz into/root/.pythonbrew/build/python-2.7.2

This could take a while. You can run the following command on another shell-to-track the status:
Tail-f "/root/.pythonbrew/log/build.log"

Installing Python-2.7.2 into/root/.pythonbrew/pythons/python-2.7.2

How about small partners, is not very simple, have the same needs of the small partners themselves to refer to it

  • 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.