On Tue, Dec 12, 2017 at 10:09 AM, Larry Martell <larry.martell at gmail.com> wrote:> On Tue, Dec 5, 2017 at 8:22 AM, Pete Biggs <pete at biggs.org.uk> 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? > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >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?
On Mon, Dec 11, 2017 at 4:25 PM, Clint Dilks <clintd at scms.waikato.ac.nz> wrote:> On Tue, Dec 12, 2017 at 10:09 AM, Larry Martell <larry.martell at gmail.com> > wrote: > >> On Tue, Dec 5, 2017 at 8:22 AM, Pete Biggs <pete at biggs.org.uk> 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.
On Mon, 11 Dec 2017 16:32:06 -0500 Larry Martell wrote:> Can I make that the default python?~/.bashrc -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
On 12/11/2017 1:32 PM, Larry Martell wrote:> 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.The "default" python is a dependency for many other system packages, so changing it without understanding what effect it will have on other parts of the system would be dangerous. The idea behind Software Collections is that you only affect the packages that truly need the newer version. How are you launching django and uWSGI? I'd suggest putting the SC command in their startup scripts to keep the new version confined to them.
On 12/11/2017 03:32 PM, Larry Martell wrote:> On Mon, Dec 11, 2017 at 4:25 PM, Clint Dilks <clintd at scms.waikato.ac.nz> wrote: >> On Tue, Dec 12, 2017 at 10:09 AM, Larry Martell <larry.martell at gmail.com> >> wrote: >> >>> On Tue, Dec 5, 2017 at 8:22 AM, Pete Biggs <pete at biggs.org.uk> 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 :). -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20171211/9fc299b7/attachment-0001.sig>
> > > > > > > > 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. >I believe doing something like source scl_source enable python27 in .bashrc will do that. But the scl_source command is a fairly recent addition so hopefully you have it. See: https://access.redhat.com/solutions/527703 Try it from a command line first before committing it to your .bashrc There are some things on the web about using django and uWSGI with software collections. For instance: https://developers.redhat.com/blog/tag/django/ but I know nothing about any of the applications so I don't know how relevant this is. P.
On Mon, Dec 11, 2017 at 4:32 PM, Larry Martell <larry.martell at gmail.com> wrote:> On Mon, Dec 11, 2017 at 4:25 PM, Clint Dilks <clintd at scms.waikato.ac.nz> wrote: >> On Tue, Dec 12, 2017 at 10:09 AM, Larry Martell <larry.martell at gmail.com> >> wrote: >> >>> On Tue, Dec 5, 2017 at 8:22 AM, Pete Biggs <pete at biggs.org.uk> 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.After I issue the command scl enable python27 bash, and my python is then 2.7.13, when I run pip will it use 2.17.13 to build what I am downloading?