Skip to content

General easy to use Raspberry Pi & Ubuntu Python installer

License

Notifications You must be signed in to change notification settings

MattMacs/sh-python-installer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

version

Raspberry Pi / Ubuntu easy Python installer

An easy way to install a new Python version on a Raspberry Pi. Works also on Ubuntu!

Be aware and please read this article

Please read this article on why NOT to update Python on your OS

I will keep working on this script, security issues etc but will not roll out any new versions when it's needed for new python versions.

The reason is obvious, use docker, don't change your OS Python version!

Installation

No real installation needed.

You can simply run this installer by

wget -qO - https://raw.githubusercontent.com/tvdsluijs/sh-python-installer/main/python.sh | sudo bash -s [python_version]

fill in the Python version you want at [python_version]

So, if you want to install version 3.9.6 do:

wget -qO - https://raw.githubusercontent.com/tvdsluijs/sh-python-installer/main/python.sh | sudo bash -s 3.9.6

on your Raspberry Pi.

For 3.10 do

wget -qO - https://raw.githubusercontent.com/tvdsluijs/sh-python-installer/main/python.sh | sudo bash -s 3.10.0

For 3.11 Alpha do

wget -qO - https://raw.githubusercontent.com/tvdsluijs/sh-python-installer/main/python.sh | sudo bash -s 3.11.0a1

Thanks to / Credits

  • TonyLHansen pointing out a sed line to beter specify a version and shellcheck
  • Henry helped out with some sizzle
  • stephen-mw for adding some small but great additions
  • Kevin Ku

Versions

  • 1.1.0 / 29 June 2022 (some minor but very good suggestions by TonyLHansen, created a Docker file to test it instant.)
  • 1.0.2 / 20 April 2022 (some minor changed done by Stephen-mw)
  • 1.0.1 / 21 Okt 2021 (Minor changes with Sudo)
  • 1.0.0 / 26 sept 2021 (First Release)

NOTE

This script updates your Raspberry Pi OS !!! If you don't want to update the OS DO NOT USE THIS SCRIPT!


License & Copyrights

Copyright (c) 2022 itheo.tech / Theo van der Sluijs

MIT License

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.

Support

For support, go to itheo.tech and contact me!

Donations

Please do not forget to donate! https://donorbox.org/tvdsluijs-github

About

General easy to use Raspberry Pi & Ubuntu Python installer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 94.8%
  • Dockerfile 5.2%