{"id":22758817,"url":"https://github.com/tvdsluijs/sh-python-installer","last_synced_at":"2025-07-23T07:05:43.209Z","repository":{"id":37241173,"uuid":"411770160","full_name":"tvdsluijs/sh-python-installer","owner":"tvdsluijs","description":"Easy to use Python 3.x installer for Raspberry Pi \u0026 Ubuntu eg.","archived":false,"fork":false,"pushed_at":"2024-12-15T20:07:34.000Z","size":100,"stargazers_count":77,"open_issues_count":2,"forks_count":18,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-21T07:08:49.445Z","etag":null,"topics":["python3","raspberry-pi","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tvdsluijs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"tvdsluijs","ko_fi":"itheo_tech","buy_me_a_coffee":"itheo","custom":["https://donorbox.org/itheo-tech-donation"]}},"created_at":"2021-09-29T17:32:06.000Z","updated_at":"2025-02-14T23:31:31.000Z","dependencies_parsed_at":"2024-09-10T15:14:34.547Z","dependency_job_id":"7372d40d-42ab-41f2-8efe-362bbd0eccf3","html_url":"https://github.com/tvdsluijs/sh-python-installer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tvdsluijs%2Fsh-python-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tvdsluijs%2Fsh-python-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tvdsluijs%2Fsh-python-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tvdsluijs%2Fsh-python-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tvdsluijs","download_url":"https://codeload.github.com/tvdsluijs/sh-python-installer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241124167,"owners_count":19913830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python3","raspberry-pi","ubuntu"],"created_at":"2024-12-11T08:15:59.841Z","updated_at":"2025-02-28T08:26:18.175Z","avatar_url":"https://github.com/tvdsluijs.png","language":"Shell","funding_links":["https://github.com/sponsors/tvdsluijs","https://ko-fi.com/itheo_tech","https://buymeacoffee.com/itheo","https://donorbox.org/itheo-tech-donation"],"categories":[],"sub_categories":[],"readme":"# Easy Python Installer for Raspberry Pi \u0026 Ubuntu 🚀🐍\n\n[![version](https://img.shields.io/badge/version-1.2.0-blue.svg)](https://github.com/tvdsluijs/sh-python-installer/releases)\n[![license](https://img.shields.io/badge/license-MIT-green.svg)](https://choosealicense.com/licenses/mit/)\n[![Python Versions](https://img.shields.io/badge/Python%20Versions-3.x.x-orange.svg)](https://www.python.org/doc/versions/)\n[![Donate](https://img.shields.io/badge/Donate-Coffee%20Fund-brown.svg)](https://donorbox.org/tvdsluijs-github)\n[![Stars](https://img.shields.io/github/stars/tvdsluijs/sh-python-installer.svg?style=social)](https://github.com/tvdsluijs/sh-python-installer)\n\n## Overview\n\nUpdating Python on systems like Raspberry Pi and Ubuntu can be a daunting task, filled with dependency conflicts and compatibility issues. This script simplifies the process, enabling you to install or update any Python version easily with **just one command**. It’s perfect for developers, hobbyists, and system administrators.\n\n![Python Installer](https://raw.githubusercontent.com/tvdsluijs/sh-python-installer/refs/heads/main/sh-python-installer.jpg)\n\n💡 **Why this script?**\n- No more manual dependency hunting or installation errors.\n- Works seamlessly for both Raspberry Pi OS and Ubuntu.\n- Ideal for keeping your system's Python version up-to-date.\n\n\u003e **Warning**: Updating Python can affect your current system setup. Please ensure you’ve read the details below and have a proper backup before proceeding.\n\n---\n\n## Table of Contents\n- [📥 Installation](#-installation)\n- [⚠️ Important Notes](#️-important-notes)\n- [🔧 How It Works](#-how-it-works)\n- [🌟 Features](#-features)\n- [🚀 Version History](#-version-history)\n- [💻 Contributions](#-contributions)\n- [☕ Support My Work](#-support-my-work)\n- [📞 Contact](#-contact)\n- [📜 License](#-license)\n\n---\n\n## 📥 Installation\n\nRun the script directly from GitHub:\n\n```bash\nwget -qO - https://raw.githubusercontent.com/tvdsluijs/sh-python-installer/main/python.sh | sudo bash -s [python_version]\n```\n\nReplace `[python_version]` with your desired version. For example:\n\n- To install Python 3.9.6:\n  ```bash\n  wget -qO - https://raw.githubusercontent.com/tvdsluijs/sh-python-installer/main/python.sh | sudo bash -s 3.9.6\n  ```\n- To install Python 3.10.0:\n  ```bash\n  wget -qO - https://raw.githubusercontent.com/tvdsluijs/sh-python-installer/main/python.sh | sudo bash -s 3.10.0\n  ```\n- To install Python 3.11 Alpha:\n  ```bash\n  wget -qO - https://raw.githubusercontent.com/tvdsluijs/sh-python-installer/main/python.sh | sudo bash -s 3.11.0a1\n  ```\n\n👉 For a list of all available Python versions, visit the official [Python Versions](https://www.python.org/doc/versions/) page.\n\n---\n\n## ⚠️ Important Notes\n\n1. **System Updates**:\n   This script will update your system before installing Python. Be aware that these updates might introduce issues or conflicts with your current setup.\n   - **Recommendation**: Ensure you have a **full backup** of your system before running this script.\n\n2. **Warranty Disclaimer**:\n   ```\n   THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.\n   ```\n   Use this script at your own risk. The author is not responsible for any issues or damages caused to your system.\n\n3. **Verbose Mode (`-v`)**:\n   - Add the `-v` flag to enable verbose mode for detailed logging. Example:\n     ```bash\n     wget -qO - https://raw.githubusercontent.com/tvdsluijs/sh-python-installer/main/python.sh | sudo bash -s 3.10.0 -v\n     ```\n   - Logs will also be saved in a file named `python_install_\u003cversion\u003e.log`.\n\n---\n\n## 🔧 How It Works\n\n1. **Checks System Requirements**: Ensures sufficient disk space and root privileges.\n2. **Validates Python Version**: Confirms the requested Python version is available for download.\n3. **System Update**: Updates your OS to avoid dependency issues.\n4. **Builds and Installs Python**: Compiles the source code with optimizations.\n5. **Fallback Safety**: Doesn’t overwrite the default system Python (`altinstall` is used).\n\n---\n\n## 🌟 Features\n\n- **Ease of Use**: Install Python with a single command.\n- **Customizable**: Supports any 3.x.x Python version.\n- **Verbose Logging**: Debug issues easily with detailed logs (`-v` flag).\n- **Compatibility**: Works on both Raspberry Pi OS and Ubuntu.\n\n---\n\n## 🚀 Version History\n\n| Version | Date        | Changes                                                                                      |\n|---------|-------------|----------------------------------------------------------------------------------------------|\n| 1.2.0   | 29 Nov 2024 | Improved README, added verbose mode, Python version validation, and more robust error checks. |\n| 1.1.1   | 16 Oct 2022 | Improvements by Matthias Frank.                                                              |\n| 1.1.0   | 29 Jun 2022 | Docker support added. Thanks to suggestions by TonyLHansen.                                  |\n| 1.0.2   | 20 Apr 2022 | Minor updates by Stephen-mw.                                                                 |\n| 1.0.0   | 26 Sep 2021 | First release.                                                                               |\n\n---\n\n## 💻 Contributions\n\n- **Acknowledgments**: Thanks to TonyLHansen, Henry, Matthias Frank, and others for contributions and feedback.\n- Want to contribute? Fork the repo, submit pull requests, or open issues on [GitHub](https://github.com/tvdsluijs/sh-python-installer).\n\n---\n\n## ☕ Support My Work\n\nIf this script saved you time or made your life easier, consider supporting it:\n\n- **⭐ Star this repo**: [GitHub Repo](https://github.com/tvdsluijs/sh-python-installer)\n- **☕ Donate a coffee**: [![Donate](https://img.shields.io/badge/Donate-Coffee%20Fund-brown.svg)](https://donorbox.org/tvdsluijs-github)\n- **Share**: Tell others about this tool!\n\nYour support helps keep this project alive and growing. Thank you! 🙏\n\n---\n\n## 📞 Contact\n\n- **Website**: [itheo.tech](https://itheo.tech)\n- **Resume**: [Theovandersluijs.eu](https://theovandersluijs.eu)\n- **Contact Form**: [itheo.tech/contact](https://itheo.tech/contact)\n\n---\n\n## 📜 License\n\nThis project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftvdsluijs%2Fsh-python-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftvdsluijs%2Fsh-python-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftvdsluijs%2Fsh-python-installer/lists"}