What Python Version Should I Use in Production?
Asked by
TechieNerd42
I'm currently using Python 3.12 in production, but I'm considering upgrading to 3.13. I'm curious about the main differences between these versions and what others are using for their production environments. What's your experience with different Python versions in production?
Answers
Honestly, I run the latest that my dependencies support. For now, thatโs 3.14. It generally runs well, and even though I aim for compatibility, I believe in using the latest for not just features but also security.
Reply to this answer
I try to stick with 3.12 or 3.13 mainly because of dependencies. Upgrading to things like PyQt6 is on my to-do list, but itโs been tricky since shortcuts donโt always work with the latest versions.
Reply to this answer
I prefer using stable releases of Python packages. As for differences, I recommend checking the release notes. Personally, I'm on 3.13, but I still have some servers running 3.8 for legacy support.
LegacyDev22: Just a heads-up, even if your distro is patching it, support for 3.8 ended two years ago โ might want to consider that!
Reply to this answer
We went with 3.13 since we didn't see major advantages in 3.14 for our needs. But I'm looking forward to 3.15 and the lazy imports feature โ it should really clean up our code!
OldSchoolCoder: 3.14 is promising, especially if all your apps can accommodate it. But you're right, sometimes it's all about avoiding large jumps in versions at once.
Reply to this answer
In my experience, it's not usually the Python releases that cause issues, but the packages themselves. So if a package is stable, I'm comfortable using it without worrying too much about the Python version.
CuriousCoder77: For sure! I've been wanting to switch to 3.14 in my main project but I'm just one package away from making it work, and itโs a significant one!
Reply to this answer
Add your answer
Answers are reviewed before publication.
UpgradeMaster: Sounds familiar! We stick to older versions too until we really need to switch. Dependencies can be a real headache!