We’ve installed the tflite ( TensorFlow Lite) package, which (unlike normal Tensorflow) works without problems inside websites on PythonAnywhere.The latest version of Selenium, which works with headless Chrome, is now installed by default.
INSTALL PYTHON 2.7 UBUNTU 16.04 SERVER INSTALL
You can update existing sites to use 3.9 by changing the Python version on the “Web” page, but you should make sure you’ve fully upgraded your install to the very latest version of web2py using your site’s admin interface before doing so. As web2py now supports Python 3.x, and we no longer fully support 2.7, new web2py sites in accounts using the new system image will be started using Python 3.9.We won’t list all of them here to prevent this post from getting absurdly long, but here are the highlights: We’ve installed over 40 new Python packages, and updated all of the ones that we already supported. We now have PyPy 7.3.4 installed, with support for Python 2.7.18 and 3.7.10.Don’t let that hold you back from upgrading, though! The Python development team dropped all support for it (including security patches) back in January 2020 so you should really be using Python 3.x for everything. Python 3.5 may be dropped in the next system image however, we’re planning to keep basic Python 2.7 support for at least the next couple of images. That means that you can use them, but you’ll need to install any dependencies you need for yourself.
Ubuntu 20.04 does not have that restriction, so if you’re using glastonbury you can go to the “Account” page, switch to the “System image” tab, and specify which version you want it to run. Previously, with Ubuntu 16.04, that command had to always run Python 2.7, which was annoying. You can now configure the Bash command python to run any version of Python that the image supports.We’ve installed new point releases of the other installed Pythons:.Python 3.9 (specifically, 3.9.5) is now supported.While this doesn’t make any huge changes to the system, it made a number of the things below possible… Python version changes ¶ The operating system is now Ubuntu 20.04. There’s a lot! A new and better operating system ¶
This post has more details on what’s new in the glastonbury system image.
INSTALL PYTHON 2.7 UBUNTU 16.04 SERVER CODE
You can switch to the new system image from the “Account” page, but you may need to make changes to your code and/or virtualenvs to make everything work – there’s more information on the linked page. If you signed up before that date, you’ll be on an older “system image” – essentially the version of the operating system and the set of installed packages that you have access to. Additionally, the underlying operating system for your account will be Ubuntu 20.04, rather than the 16.04 used by older accounts. If you signed up for an account on PythonAnywhere after 21 June 2021, you’ll have Python 3.9 available – you can use it just like any other Python version. Glastonbury: a new system image, with Python 3.9 and Ubuntu 20.04