Python and Ubuntu versions
Peter J. Holzer
hjp-python at hjp.at
Sat Aug 21 17:25:17 EDT 2021
On 2021-07-23 15:17:59 +1000, Cameron Simpson wrote:
> On 23Jul2021 07:54, אורי <uri at speedy.net> 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.
|_|_) | |
| | | hjp at hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://mail.python.org/pipermail/python-list/attachments/20210821/e8283ecd/attachment.sig>
More information about the Python-list
mailing list