2 ms·
Incompatible with the default Ubuntu 22.04 LTS python version, just FYI (uses 3.10 whereas the minimum is now 3.12).
by ranger_danger 1y ago
Incompatible with the default Ubuntu 22.04 LTS python version, just FYI (uses 3.10 whereas the minimum is now 3.12).
- wolf550e 1y agoIs this handled by uv or do you need to use deadsnakes ppa?
- stavros 1y agoIf anything, you'd need the opposite, as deadsnakes is old versions (OP needs a new version).
- wolf550e 1y agodeadsnakes has 3.13.8, 3.14.0 and 3.15-a1 for 22.04: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa?field.series_filter=jammy https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa?field....
- stavros 1y agoOh interesting, I didn't realize they started including newer versions. I guess that makes the name a misnomer then...
- collinmanderson 1y agoYes, that's pretty typical. I think there's a general assumption if you're using older python you'll probably stick to Django LTS 5.2 from this April which still supports Python 3.10. They only drop python versions right after LTS (which is part of why they increase the major version at that point). https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django https://docs.djangoproject.com/en/dev/faq/install/#what-pyth... Also Django LTS 5.2 is supported a year longer than Ubuntu 22.04. (April 2028 vs April 2027)
- davidkwast 1y agoYou can always use pyenv to install any Python on any mainstream Linux. I only use pyenv Python to develop on any laptop or any server. My dev laptop is still Ubuntu 22.04 and I have any Python from 2.7 to 3.14 . https://github.com/pyenv/pyenv https://github.com/pyenv/pyenv Simple Python version management
- majorchord 1y agoWow I had no idea about that, thanks!
- int_19h 1y agoBetter yet, uv: https://docs.astral.sh/uv/guides/install-python/ https://docs.astral.sh/uv/guides/install-python/
- gdulli 1y agoBuilding Python from source is trivial, I wouldn't let the distro dictate what I can and can't use for such an important part of the stack.
- stackskipton 1y agoOps here, using System Python is always asking for trouble, just put Django into a container and call it a day.
- ranger_danger 1y agoWhat kind of trouble? That's all I've ever used for the last 15 years of my professional Django work and never had any issues...
- stackskipton 1y agoAnything involving Distro updating. There is no reason not to use containers except Docker Build scary!
- Balinares 1y agoIncompatibility with Python version in current LTS Ubuntu sounds like an issue to me. FWIW I used to be fine with just dealing with system Python, like you, but recent tools like uv make it so easy and convenient to isolate interpreters and dependencies per project that I'm just not going back.
- loloquwowndueo 1y agoIf you need Python 3.12 you should update to Ubuntu 24.04 if you want to stick with distro packages.