[Tutor] Wish to upgrade Python 3.6.5 to Python 3.6.6 for Linux Mint 19
I have finally taken the plunge and abandoned Windows for Linux Mint 19. I had been doing a dual-boot, but I found I spent most of my time where I was comfortable -- Windows 7 -- and mostly avoided my Linux installation. So I took my pacifier away and went for it! Linux Mint 19 comes with Python 3.6.5 pre-installed. However, my son and I are working on a couple of things together, and decided to use the latest bugfix releases of Python 3.6 for them. I would not think that upgrading from 3.6.5 to 3.6.6 would break anything in my system Python 3. But after much searching I cannot find an _easy_ way to do this upgrade. I would rather delay the learning experience of compiling Python from source if I can. Is there any _easy_ way to upgrade the system Python 3.6.5 to 3.6.6 (Without wreaking system-wide havoc)? -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Wish to upgrade Python 3.6.5 to Python 3.6.6 for Linux Mint 19
On 14/07/18 22:51, boB Stepp wrote: > Linux Mint 19 comes with Python 3.6.5 pre-installed. However, my son > and I are working on a couple of things together, and decided to use > the latest bugfix releases of Python 3.6 for them. I would not think > that upgrading from 3.6.5 to 3.6.6 would break anything in my system Probably not but do you really need that last dot release? Do you know for sure there is anything in it that will affect your code? If not I'd just stay on 3.6.5 Personally, although I have 3.6.5 installed, my default v3 is 3.5.4. If you really need 3.6.6 then your best bet is to locate a deb package that somebody has created, otherwise building from source is about the only option. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Wish to upgrade Python 3.6.5 to Python 3.6.6 for Linux Mint 19
On 07/14/2018 06:42 PM, Alan Gauld via Tutor wrote: On 14/07/18 22:51, boB Stepp wrote: Linux Mint 19 comes with Python 3.6.5 pre-installed. However, my son and I are working on a couple of things together, and decided to use the latest bugfix releases of Python 3.6 for them. I would not think that upgrading from 3.6.5 to 3.6.6 would break anything in my system Probably not but do you really need that last dot release? Do you know for sure there is anything in it that will affect your code? If not I'd just stay on 3.6.5 Personally, although I have 3.6.5 installed, my default v3 is 3.5.4. If you really need 3.6.6 then your best bet is to locate a deb package that somebody has created, otherwise building from source is about the only option. Bob, If you look you might find a PPA that has packaged it. I installed python 3.6.5 (no help to you) on Mint 18 from here: https://launchpad.net/~jonathonf/+archive/ubuntu/python-3.6'. Maybe you can find one that does 3.6.6 or ask Jonathon if he intends to package 3.6.6. Whatever you do I would suggest you install it in a virtual environment, especially if you are going to be experimenting with a lot of libraries. If you use a virtual environment you don't have to worry about breaking your system python. regards, Jim ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Wish to upgrade Python 3.6.5 to Python 3.6.6 for Linux Mint 19
take a look at pyenv. should make it fairly easy. https://github.com/pyenv/pyenv On July 14, 2018 7:17:52 PM MDT, Jim wrote: >On 07/14/2018 06:42 PM, Alan Gauld via Tutor wrote: >> On 14/07/18 22:51, boB Stepp wrote: >> >>> Linux Mint 19 comes with Python 3.6.5 pre-installed. However, my >son >>> and I are working on a couple of things together, and decided to use >>> the latest bugfix releases of Python 3.6 for them. I would not >think >>> that upgrading from 3.6.5 to 3.6.6 would break anything in my system >> >> Probably not but do you really need that last dot release? >> Do you know for sure there is anything in it that will affect >> your code? If not I'd just stay on 3.6.5 >> >> Personally, although I have 3.6.5 installed, my default v3 >> is 3.5.4. >> >> If you really need 3.6.6 then your best bet is to locate a >> deb package that somebody has created, otherwise building >> from source is about the only option. >> > >Bob, > >If you look you might find a PPA that has packaged it. I installed >python 3.6.5 (no help to you) on Mint 18 from here: >https://launchpad.net/~jonathonf/+archive/ubuntu/python-3.6'. > >Maybe you can find one that does 3.6.6 or ask Jonathon if he intends to > >package 3.6.6. Whatever you do I would suggest you install it in a >virtual environment, especially if you are going to be experimenting >with a lot of libraries. If you use a virtual environment you don't >have >to worry about breaking your system python. > >regards, Jim > > >___ >Tutor maillist - Tutor@python.org >To unsubscribe or change subscription options: >https://mail.python.org/mailman/listinfo/tutor -- Sent from my Android device with K-9 Mail. Please excuse my brevity. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Wish to upgrade Python 3.6.5 to Python 3.6.6 for Linux Mint 19
On Sat, Jul 14, 2018 at 8:18 PM Jim wrote: > If you look you might find a PPA that has packaged it. I installed > python 3.6.5 (no help to you) on Mint 18 from here: > https://launchpad.net/~jonathonf/+archive/ubuntu/python-3.6'. That is an interesting thought. My only concern is how does one choose a "safe" PPA? With the recent security breaches of Gentoo and Arch Linux repositories, nothing seems safe nowadays, and PPAs seem dependent on trusting someone apart from the official Linux distribution. However, when I was doing my searching, this particular PPA came up more than once, so I imagine he is reliable. > Maybe you can find one that does 3.6.6 or ask Jonathon if he intends to > package 3.6.6. Whatever you do I would suggest you install it in a > virtual environment, especially if you are going to be experimenting > with a lot of libraries. If you use a virtual environment you don't have > to worry about breaking your system python. Your advice is very solid. Alas! I was hoping to delay getting intimate with virtual environments, but based on my own searches, your advice and Alan's it appears to me that I have three obvious choices: (1) Just stick with the current system Python 3 until an issue comes up that 3.6.6 fixes. (2) Wait on the system Python 3 to provide an update to Python 3.6.6. (3) Install into a virtual environment -- either compiling from source or the PPA route. Thanks, Jim! -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Wish to upgrade Python 3.6.5 to Python 3.6.6 for Linux Mint 19
On Sat, Jul 14, 2018 at 8:23 PM Mats Wichmann wrote: > > take a look at pyenv. should make it fairly easy. > > https://github.com/pyenv/pyenv This does look interesting. On the linked page, after installing and configuring pyenv, it says to install Python as follows giving a 2.7.8 example: $ pyenv install 2.7.8 Where and how does it get its Python installation? boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Wish to upgrade Python 3.6.5 to Python 3.6.6 for Linux Mint 19
On Sat, Jul 14, 2018 at 8:43 PM boB Stepp wrote: > > On Sat, Jul 14, 2018 at 8:23 PM Mats Wichmann wrote: > > > > take a look at pyenv. should make it fairly easy. > > > > https://github.com/pyenv/pyenv > > This does look interesting. On the linked page, after installing and > configuring pyenv, it says to install Python as follows giving a 2.7.8 > example: > > $ pyenv install 2.7.8 > > Where and how does it get its Python installation? After a lot of searching, I'm still not sure how pyenv is working its magic. On https://github.com/pyenv/pyenv/wiki it says: "pyenv will try its best to download and compile the wanted Python version, ..." This suggests that it is getting the source from somewhere (python.org/downloads ?) and then compiling it locally. Is this what it actually does? boB -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Wish to upgrade Python 3.6.5 to Python 3.6.6 for Linux Mint 19
On Sat, Jul 14, 2018 at 11:52 PM boB Stepp wrote: > > On Sat, Jul 14, 2018 at 8:43 PM boB Stepp wrote: > > > > On Sat, Jul 14, 2018 at 8:23 PM Mats Wichmann wrote: > > > > > > take a look at pyenv. should make it fairly easy. > > > > > > https://github.com/pyenv/pyenv > > > > This does look interesting. On the linked page, after installing and > > configuring pyenv, it says to install Python as follows giving a 2.7.8 > > example: > > > > $ pyenv install 2.7.8 > > > > Where and how does it get its Python installation? > > After a lot of searching, I'm still not sure how pyenv is working its > magic. On https://github.com/pyenv/pyenv/wiki it says: > > "pyenv will try its best to download and compile the wanted Python version, > ..." > > This suggests that it is getting the source from somewhere > (python.org/downloads ?) and then compiling it locally. Is this what > it actually does? After too much fruitless searching I finally found a more direct confirmation of what I was suspecting to be true at "In contrast, with PyEnv, you install a Python. This can be a version of CPython, PyPy, IronPython, Jython, Pyston, stackless, miniconda, or even Anaconda. It downloads the sources from the official repos, and compiles them on your machine [1]. Plus, it provides an easy and transparent way of switching between installed versions (including any system-installed versions). After that, you use Python's own venv and pip." This sounds like exactly what I need! Thanks for this, Mats!! I will give it a whirl later today after I wake up. -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Wish to upgrade Python 3.6.5 to Python 3.6.6 for Linux Mint 19
On Sun, Jul 15, 2018 at 1:38 AM boB Stepp wrote: > > On Sat, Jul 14, 2018 at 11:52 PM boB Stepp wrote: > > > > On Sat, Jul 14, 2018 at 8:43 PM boB Stepp wrote: > > > > > > On Sat, Jul 14, 2018 at 8:23 PM Mats Wichmann wrote: > > > > > > > > take a look at pyenv. should make it fairly easy. > > > > > > > > https://github.com/pyenv/pyenv > > > > > > This does look interesting. On the linked page, after installing and > > > configuring pyenv, it says to install Python as follows giving a 2.7.8 > > > example: > > > > > > $ pyenv install 2.7.8 > > > > > > Where and how does it get its Python installation? > > > > After a lot of searching, I'm still not sure how pyenv is working its > > magic. On https://github.com/pyenv/pyenv/wiki it says: > > > > "pyenv will try its best to download and compile the wanted Python version, > > ..." > > > > This suggests that it is getting the source from somewhere > > (python.org/downloads ?) and then compiling it locally. Is this what > > it actually does? > > After too much fruitless searching I finally found a more direct > confirmation of what I was suspecting to be true at Oops! Too sleepy. Forgot to paste the link where I found the below info. It's at: https://bastibe.de/2017-11-20-pyenv.html > "In contrast, with PyEnv, you install a Python. This can be a version > of CPython, PyPy, IronPython, Jython, Pyston, stackless, miniconda, or > even Anaconda. It downloads the sources from the official repos, and > compiles them on your machine [1]. Plus, it provides an easy and > transparent way of switching between installed versions (including any > system-installed versions). After that, you use Python's own venv and > pip." > > This sounds like exactly what I need! Thanks for this, Mats!! I will > give it a whirl later today after I wake up. > > -- > boB -- boB ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor