Forums

Python 3.11 not on PythonAnywhere.com

Please, I will like Python version 3.11.4 be installed in the root.

I wrote my app with version 3.11. While trying to migrate my database, it generates an error, "Cannot import name ugettext_lazy as _

This works on my development environment.

Thanks.

It will come with our next system image, but I can't tell you exactly when it will be available.

Are you using the same version of Django?

My Django verion is 4.2.1.

I will wait till Python version 3.11.4 is installed.

Thanks.

ugettext_lazy was removed in Django 4.0. It's not related to python 3.11. https://docs.djangoproject.com/en/4.2/internals/deprecation/#deprecation-removed-in-4-0

$ mkvirtualenv my-virtualenv --python=python3.10 this work for python3.11

No, it will not.