python version - online edit of handbook/computing/wsllaptop.html

This commit is contained in:
Expo on server 2024-04-16 02:41:10 +01:00
parent e8b49fab70
commit bc7c7e046f

View File

@ -163,7 +163,7 @@ and <a href="https://www.windowscentral.com/how-install-wsl2-windows-10">here</a
<tt><a href="https://man.openbsd.org/ssh">ssh command line</a></tt> <tt><a href="https://man.openbsd.org/ssh">ssh command line</a></tt>
<h3 id="pain">The pain continues: Python on WSL2 </h3> <h3 id="pain">The pain continues: Python on WSL2 </h3>
<p>WSL2 installs python by default, but it may be a rather old python (depending on the history of your laptop, phase of moon etc.) and if you want development speed you want python3.11. [NB the expo server currently runs python 3.9, so don't use any post3.9 idioms in your code.] <p>WSL2 installs python by default, but it may be a rather old python (depending on the history of your laptop, phase of moon etc.) and if you want development speed you want python3.11. [NB check what version of python is running on the server. It was 3.11.2 in April 2024.]
<p>To install python3.11 and pip follow <a href="https://www.linuxcapable.com/how-to-install-python-3-11-on-ubuntu-linux/">these instructions</a> to the letter. But that's not enough, you need to configure pip to work properly with python3.11 (this is because it's a bit bleeding edge as yet), so you ALSO then need to re-install the latest with: <p>To install python3.11 and pip follow <a href="https://www.linuxcapable.com/how-to-install-python-3-11-on-ubuntu-linux/">these instructions</a> to the letter. But that's not enough, you need to configure pip to work properly with python3.11 (this is because it's a bit bleeding edge as yet), so you ALSO then need to re-install the latest with:
</p> </p>
<code><pre> <code><pre>