Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Hands-On Software Engineering with Python

You're reading from   Hands-On Software Engineering with Python Move beyond basic programming to design, maintain, and deploy extensible Python systems

Arrow left icon
Product type Paperback
Published in Dec 2025
Publisher Packt
ISBN-13 9781835888001
Length 628 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Brian Allbee Brian Allbee
Author Profile Icon Brian Allbee
Brian Allbee
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Preface 1. Introduction 2. Programming Versus Software Engineering Revisited FREE CHAPTER 3. The Software Development Life Cycle 4. System Modeling 5. Methodologies, Paradigms, and Practices 6. Code Style and Related Standards 7. Functional Code Standards 8. Revisiting Development Tools 9. Revising the hms_sys System Project 10. Updating Projects and Processes 11. Re-Examining Options for Business Objects 12. Reviewing Business Object Data Persistence 13. Data Persistence and BaseDataObject 14. Testing the Business Objects 15. CI/CD Options 16. API Options 17. Assembling the API 18. The Final API, Deployed to AWS 19. Unlock Your Exclusive Benefits 20. Other Books You May Enjoy 21. Index

Getting and installing Python

Installation of Python varies a bit across operating systems. For macOS and Windows systems, there are installers available for download on the Python website (https://www.python.org/downloads/) that generally take care of everything needed. Those installers include every version of the language going back as far as 2.0.1.

Installation of multiple versions of Python is possible, with caveats

Barring some special considerations for certain Linux distributions, installation of multiple different versions of Python is viable on a single machine. Each installation will typically provide python, python3, python3.xx, and sometimes python3.xx.yy command-line entries that can be used to run it. In cases where there are multiple Python 3.x installations, say 3.11 and 3.12, the most recently installed version will be executed by the python and python3 commands. If a specific version is needed, invoking it with the full python3.xx command will be necessary (e.g., python3.11 or python3.12).

For Linux systems, installation can be more problematic. Many Linux systems have Python installed by default, because some of their programs make use of it. In several cases, those distributions also limit the available versions of Python that can be installed, in order to prevent a user from accidentally breaking system components or programs. Checking the default software installation tools in a Linux distribution is always the best first step: If the specific version of Python that is needed/desired is available, installing it using the standard tools for the distribution is the safest process. The managers of the package repository for the distribution will have made reasonable efforts to prevent installations that can break a system from being available, and anything that is available as an option would be expected to be safe.

In cases where there are no alternative versions available, there are still options worth considering before going down the path of installing from the Python website, or building from source: pyenv and Homebrew.

pyenv (https://github.com/pyenv/pyenv) is a command-line tool that allows a user to install, manage, and switch between different versions of Python at will. While switching between versions has many of the same risks as installing other versions, pyenv's ability to download and install minimal, usable Python versions without interfering with the system-level installations makes it a very good candidate for cases where project- and system-level Python version requirements conflict with each other. pyenv is also recognized by at least one Python project management tool, pipenv, and integrated well enough that the creation of a new project environment with a new Python version is handled by the project manager almost seamlessly.

Homebrew (https://brew.sh/) is a more general-purpose software management tool, capable of installing various Python versions as well as many other software packages. It is not available for Windows, at least as of late 2025, but is a viable option for macOS and Linux systems where multiple Python versions are needed.

If neither of those options is workable, falling back to downloading from the Python website is always possible too. Because of the widely varied package structures across the Linux ecosystem, those downloads are the source code and would require building the local installation from scratch. If this path must be taken, it is important to find a good, step-by-step breakdown of the processes and prerequisites involved. Usually a search along the lines of {your Linux distro name} build python 3.13 from source will yield several options.

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Hands-On Software Engineering with Python
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon