This script updates all active releases of Python, even the pre-release ones. This is for people who likes building things from source because mental health is not a thing for you.
If you have a script that runs on an end of life Python version, it's best to find another repository that hasn't been abandoned for over 5 years.
For the change log please check CHANGELOG.md
Feel free to contribute your code, if anyone sees this at all.
- Passing arguments such as
./main.sh 3.12
will check the specific version only
- Dependencies are either updated or installed. The list comes from the developer's guide of Python.
- Using wget, release information is extracted from the Python download and pre-release pages.
- Using a bunch of greps, a list of all releases is generated. The list is sorted with
sort -Vr
, so the newest version ishead -n 1
. - Your python version is checked, if it does not exist, the version will be
None
. - All active Python versions will be updated/installed based on that information.
Note: All python will be installed in /usr/local/bin
so it doesn't interfere with the system's python3 (For noobs: Don't change the system python version, it breaks things).
Go to Software and Updates
and select Source Code
under Ubuntu Software
sudo chmod +x main.sh
sudo chmod +x InstallPython.sh
./main.sh
./main.sh put_anything_here_im_too_burnt_out_to_fix_it
sudo bash -c 'CODENAME=$(grep -oP "CODENAME=\K\w+" < /etc/lsb-release); echo "deb-src http://archive.ubuntu.com/ubuntu/ $CODENAME main restricted" >> /etc/apt/sources.list'
sudo su # Activate root if you don't want to type passwords
sudo chmod +x main.sh
sudo chmod +x InstallPython.sh
./main.sh
- Go to Windows app store
- Download your Python version
- UPDATE IT WITH THE UPDATE BUTTON