On 2021-07-23 15:17:59 +1000, Cameron Simpson wrote: > On 23Jul2021 07:54, אורי <[email protected]> wrote: > >I have a production server with Ubuntu 18.04 LTS (currently upgraded to > >Ubuntu 18.04.5 LTS) and I use Python in virtualenv - currently Python > >3.6.9. I'm using Django and I read that from Django 4.0, a minimal version > >of Python 3.8 will be required. I would like to know how I use the latest > >version of Python (3.10 or 3.9) with my production server [...] > > I would install a totally separate Python from the vendor (ubunut) > provided one. This prevents subtle changes to what the OS has been > tested against. > > You can built Python from source and install it, for example with a > prefix like /usr/local/ptyhon-3.10. That gets you a different version; > nothing in the OS stuff will try to use it, but you use it to invoke > your Django app.
If you are using mod_wsgi to run your Python apps you will probably have
to rebuild that as well. The mod_wsgi supplied with Ubuntu uses the
system Python and at least a cursory glance through the docs doesn't
reveal a way to change that.
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | [email protected] | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
signature.asc
Description: PGP signature
-- https://mail.python.org/mailman/listinfo/python-list
