qw
2016-Jul-04 14:08 UTC
[CentOS] how to use python 2.7 by default instead python 2.6 on centos 6.8
Hi, centos 6.8 comes with python 2.6. But I want to use python 2.7 to build gstreamer sdk. I have built python 2.7 and installed it into my custom directory. How to set centos to use python 2.7 by default instead of python 2.6? Thanks! Regards Andrew
John Hodrien
2016-Jul-04 14:25 UTC
[CentOS] how to use python 2.7 by default instead python 2.6 on centos 6.8
On Mon, 4 Jul 2016, qw wrote:> centos 6.8 comes with python 2.6. But I want to use python 2.7 to build > gstreamer sdk. I have built python 2.7 and installed it into my custom > directory. How to set centos to use python 2.7 by default instead of python > 2.6?Don't. If you try to swap out the standard python with another one, expect almost everything you hold dear to break. jh
qw
2016-Jul-04 15:21 UTC
[CentOS] how to use python 2.7 by default instead python 2.6 on centos 6.8
Hi, Thanks for your reply.>> centos 6.8 comes with python 2.6. But I want to use python 2.7 to build >> gstreamer sdk. I have built python 2.7 and installed it into my custom >> directory. How to set centos to use python 2.7 by default instead of python >> 2.6? > >Don't. If you try to swap out the standard python with another one, expect >almost everything you hold dear to break.I want to build gstreamer sdk on centos by using cerbero, which is of python program and demands python 2.7. How to make centos 6.8 choose python 2.7 by default instead of python 2.6, so as to build gstreamer sdk? Thanks! Regards Andrew At 2016-07-04 22:25:20, "John Hodrien" <J.H.Hodrien at leeds.ac.uk> wrote:>On Mon, 4 Jul 2016, qw wrote: > >> centos 6.8 comes with python 2.6. But I want to use python 2.7 to build >> gstreamer sdk. I have built python 2.7 and installed it into my custom >> directory. How to set centos to use python 2.7 by default instead of python >> 2.6? > >Don't. If you try to swap out the standard python with another one, expect >almost everything you hold dear to break. > >jh >_______________________________________________ >CentOS mailing list >CentOS at centos.org >https://lists.centos.org/mailman/listinfo/centos
Michael Hennebry
2016-Jul-04 16:26 UTC
[CentOS] how to use python 2.7 by default instead python 2.6 on centos 6.8
On Mon, 4 Jul 2016, John Hodrien wrote:> On Mon, 4 Jul 2016, qw wrote: > >> centos 6.8 comes with python 2.6. But I want to use python 2.7 to build >> gstreamer sdk. I have built python 2.7 and installed it into my custom >> directory. How to set centos to use python 2.7 by default instead of python >> 2.6? > > Don't. If you try to swap out the standard python with another one, expect > almost everything you hold dear to break.John Hodrien's reply was done well. Such replies are so rarely done well that I thought it worth noting. Often it's just "Don't", "Don't do that" or "Don't do that, it's stupid". -- Michael hennebry at web.cs.ndsu.NoDak.edu "Sorry but your password must contain an uppercase letter, a number, a haiku, a gang sign, a heiroglyph, and the blood of a virgin." -- someeecards
Александр Кириллов
2016-Jul-04 18:53 UTC
[CentOS] how to use python 2.7 by default instead python 2.6 on centos 6.8
> centos 6.8 comes with python 2.6. But I want to use python 2.7 to > build gstreamer sdk. I have built python 2.7 and installed it into my > custom directory. How to set centos to use python 2.7 by default > instead of python 2.6?You could have used python virtualenv. I'm not a python dev and only have vague memories and some short notes on the subject. FYI I have all my python 2.7 packages installed from PUIAS_6_computational repo which had a better selection of python packages at the time: python27-2.7.8 python27-virtualenv-1.10.1 ... When you have python27-virtualenv package you can create and activate a virtual environment with the following commands: $ mkdir ~/opt/python27 $ virtualenv-2.7 ~/opt/python27 $ . ~/opt/python27/bin/activate (python27) prefix will be added to the shell prompt and all subsequent python calls will use version from the virtual environment. (python27) $ python --version Python 2.7.8 ... (python27) $ deactivate HTH
Seemingly Similar Threads
- how to use python 2.7 by default instead python 2.6 on centos 6.8
- how to use python 2.7 by default instead python 2.6 on centos 6.8
- how to set/add environment variables and make file search priority on centos
- how to build/install pulseaudio 6.0 on centos 6.8
- Does centos 6.8 support gstreamer 1.8?