This script is redundant!
I have created an ultimate Python installer for any version. Please go to https://itheo.tech/ultimate-python-installation-on-a-raspberry-pi-ubuntu-script
or the git repo: https://github.com/tvdsluijs/sh-python-installer
An easy way to install a new Python version on a Raspberry Pi. Works also on Ubuntu!
No real installation needed.
You can simply run this installer by
wget -O - https://raw.githubusercontent.com/tvdsluijs/raspberry-pi-python-sh-installer/main/python[python_verion].sh | sudo bash
fill in the Python version you want at [python_verion]
So, if you want to install version 3.9.3 do:
wget -O - https://raw.githubusercontent.com/tvdsluijs/raspberry-pi-python-sh-installer/main/python3.9.3.sh | sudo bash
on your Raspberry Pi or Ubuntu Environment.
NOTE
This script updates your Raspberry Pi OS !!! If you don't want to update the OS DO NOT USE THIS SCRIPT!
Copyright (c) 2021 itheo.tech / Theo van der Sluijs
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Get your copy of the MIT License.
For support, go to itheo.tech and contact me!