On 12/11/2017 03:32 PM, Larry Martell wrote: > On Mon, Dec 11, 2017 at 4:25 PM, Clint Dilks <clintd@xxxxxxxxxxxxxxxxxx> wrote: >> On Tue, Dec 12, 2017 at 10:09 AM, Larry Martell <larry.martell@xxxxxxxxx> >> wrote: >> >>> On Tue, Dec 5, 2017 at 8:22 AM, Pete Biggs <pete@xxxxxxxxxxxx> wrote: >>>> On Tue, 2017-12-05 at 14:16 +0100, Kai Grunau wrote: >>>>> On 05.12.2017 14:05, Larry Martell wrote: >>>>>> I am running CentOS 7 and I have python version: >>>>>> >>>>>> Python 2.7.5 (default, Sep 15 2016, 22:37:39) >>>>>> >>>>>> I need a newer version of 2.7 to pick up a bug fix. How can I do that >>>>>> (without breaking anything in CentOS)? >>>>> >>>>> you could use the anaconda software, it is independent of the OS >>>>> regards >>>>> >>>>> >>>> >>>> Or use Software Collections, the Python27 package from there has 2.7.13 >>>> >>>> https://www.softwarecollections.org/en/scls/rhscl/python27/ >>>> >>>> https://wiki.centos.org/AdditionalResources/Repositories/SCL >>> >>> I followed the instructions at the first link and I still only seem to >>> have 2.7.5. How can I specify a newer version? > >> Hi, perhaps reading https://www.softwarecollections.org/en/ and >> https://www.softwarecollections.org/en/scls/rhscl/python27/ will help. >> >> Have you done scl enable python27 bash in your current shell? > > Thanks. Missed that. Now I do get 7.5.13 but it seems I have to type > that command in each new shell. Can I make that the default python? I > want django and uWSGI to use that version. You likely can not make it the default python .. because all the system based things will likely break. However, you CAN add (call) the correct environment to your startup scripts for the proper deamons in init, which should run the required servers with the version of python that you want. The whole purpose of SCLs is to allow multiple versions of the same items to run together on a given machine, and you can pick the one you need for a give application/server service .. WHILE, not breaking 9in the case of python) things like yum :).
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx https://lists.centos.org/mailman/listinfo/centos