diff --git a/handbook/troggle/troglaptop.html b/handbook/troggle/troglaptop.html index e85d4654c..3c1e9dfb6 100644 --- a/handbook/troggle/troglaptop.html +++ b/handbook/troggle/troglaptop.html @@ -95,6 +95,7 @@ git config --global pull.rebase true </pre></code> <p>We use pull.rebase as this seems to work best with our repos and the way we work. + <h2 id="python">Installing python</h2> <a href="https://xkcd.com/1987/"><img src="https://imgs.xkcd.com/comics/python_environment.png" align="right" hspace="20" width="230" alt='XKCD python install'></a> @@ -125,7 +126,9 @@ database. Sqlite3 is used by the test harness system. <p>We do <em>not</em> install Django at this point. We will be installing Django in a separate virtual environment (a 'venv'), not in the main linux system. - <p><b>Buggeration:</b> The <var>sudo add-apt-repository ppa:deadsnakes/ppa</var> line <a href="https://opensource.com/article/22/9/deprecated-linux-apt-key">won't work</a> after Debian 11 or Ubuntu 22.04. So this handbook page will need to be changed to use the <a href="https://askubuntu.com/questions/1286545/what-commands-exactly-should-replace-the-deprecated-apt-key">new method</a>. And this way of installing python3.10 is fine on Ubuntu but not on Debian, where you are stuck with 3.9 on Debian 11 (Bullseye). + <p><b>Buggeration #1:</b> The <var>sudo add-apt-repository ppa:deadsnakes/ppa</var> line <a href="https://opensource.com/article/22/9/deprecated-linux-apt-key">won't work</a> after Debian 11 or Ubuntu 22.04. So this handbook page will need to be changed to use the <a href="https://askubuntu.com/questions/1286545/what-commands-exactly-should-replace-the-deprecated-apt-key">new method</a>. And this way of installing python3.10 is fine on Ubuntu but not on Debian, where you are stuck with 3.9 on Debian 11 (Bullseye). + <p><b>Buggeration #2:</b> In Ubuntu 23.04 you can’t run pip install outside a virtual environment. SO use venv, see <a href="https://www.omgubuntu.co.uk/2023/04/pip-install-error-externally-managed-environment-fix">Pip Install Error</a> (but not, don't use pipx unless you have used it before). + <p>In case you have python version problems with venv, look at the instructions for <a href="/handbook/computing/wsllaptop.html_edit">python3.11 on WSL2</a>. <p>Note that default-jre is Java which is used by tunnel and <a href="https://activityworkshop.net/software/gpsprune/download.html">gpsprune</a>.