<div dir="ltr"><div dir="ltr">Hi Bo,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 30 Jul 2020 at 07:17, Bo Berglund <<a href="mailto:bo.berglund@gmail.com">bo.berglund@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
It has python 2.7 installed as its default python and now I am getting<br>
problems because apparently 2.7 is no longer the version used for some<br>
of my tools, which prints messages that all upgrades must use python 3<br>
(actually 3.5 or higher).<br>
I have managed to install 3.7 even though the ubuntu apt system only<br>
provides a much lower version.<br>
I did that using this instruction page:<br>
<a href="https://linuxize.com/post/how-to-install-python-3-7-on-ubuntu-18-04/" rel="noreferrer" target="_blank">https://linuxize.com/post/how-to-install-python-3-7-on-ubuntu-18-04/</a><br></blockquote><div><br></div><div>Are they *your* tools in that you wrote them?</div><div><br></div><div>If so, you could try this as the first line of your tools' source code:-</div><div>#!/usr/bin/env python3</div><div><br></div><div>Caution: I am not a Python expert but have dabbled with it.</div><div><br></div><div>If that does not help, ask a Python expert about using "Python Virtual Environments".<br></div><div><br></div><div>I believe that the default Python is important to the proper functioning of Ubuntu so I'd be really careful about changing things.<br></div><div><br></div><div>HTH,</div><div><br></div><div><br></div><div>Ian</div><br clear="all"></div><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>-- ACCU - Professionalism in programming - <a href="http://www.accu.org" target="_blank">http://www.accu.org</a><br></div>-- My writing - <a href="https://sites.google.com/site/ianbruntlett/" target="_blank">https://sites.google.com/site/ianbruntlett/</a><br><div>-- Free Software page - <a href="https://sites.google.com/site/ianbruntlett/home/free-software" target="_blank">https://sites.google.com/site/ianbruntlett/home/free-software</a><br></div><br> </div></div></div></div></div></div></div></div>