linux 下实现python多版本安装实践
使用pythonbrew
easy_installpythonbrew [root@li637-23schirm]#pythonbrew_install
Well-done!Congratulations!
Thepythonbrewisinstalledas:
/root/.pythonbrew
Pleaseaddthefollowinglinetotheendofyour~/.bashrc
[[-s"$HOME/.pythonbrew/etc/bashrc"]]&&source"$HOME/.pythonbrew/etc/bashrc"
Afterthat,exitthisshell,startanewone,andinstallsomefresh pythons:
pythonbrewinstall2.7.2 pythonbrewinstall3.2
Forfurtherinstructions,run:
pythonbrewhelp
Thedefaulthelpmessageswillpopupandtellyouwhattodo!
Enjoypythonbrewat/root/.pythonbrew!! [root@li637-23schirm]#vim/root/.pythonbrew [root@li637-23schirm]#.~/.bashrc [root@li637-23schirm]#pythonbrewinstall2.7.2 DownloadingPython-2.7.2.tgzas/root/.pythonbrew/dists/Python-2.7.2.tgz ########################################################################100.0% ExtractingPython-2.7.2.tgzinto/root/.pythonbrew/build/Python-2.7.2
Thiscouldtakeawhile.Youcanrunthefollowingcommandonanothershelltotrackthestatus: tail-f"/root/.pythonbrew/log/build.log"
InstallingPython-2.7.2into/root/.pythonbrew/pythons/Python-2.7.2