I followed the instructions on this HOWTO to update the version of Python running in my virtual environment:
In order to use the new Python with a uwsgi or Django app installed via your dashboard, you'll need to replace the installed env virtualenv directory with a new one created with your self-installed Python and then install uwsgi and whatever other packages you need into that, eg:
> cd ~/apps/appname
> mv env env.old
> ~/opt/bin/python3.9 -m venv env
> source env/bin/activate
> pip install uwsgi django
I renamed my current env to env.old, created a new env using Python 3.10, activated it, installed the libraries I need, then stopped and restarted the web service using the ./stop and ./start scripts in my app.
But when I display sys.version on my web app, it still shows that it's running Python 3.6.
3.6.8 (default, Nov 16 2020, 16:55:22) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
Is there another step I'm missing? Any help is greatly appreciated!