Re: upgrading python

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Pete Biggs wrote:
> On Mon, 2017-12-11 at 15:44 -0600, Frank Cox wrote:
>> On Mon, 11 Dec 2017 16:32:06 -0500
>> Larry Martell wrote:
>>
>> > Can I make that the default python?
>>
>> ~/.bashrc
>>
> No. I'm not entirely sure that is a good idea! No, not all.
>
> 'scl enable python27 bash' creates a *new* shell with the correct
> environment.  As each invocation of bash reads .bashrc, it will also
> create another new shell which will then read .bashrc and create
> another shell ....
>
> Depending on the speed of your machine and disks and how much memory
> you have, it will take a few seconds to a few minutes to grind your
> machine to a halt.

The simplest way is to . <path/to/python2.7/enable, and you're good to go.

      mark

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux