Python

How to upgrade an existing Python 2 virtualenv

Use:

virtualenv <existing directory> -p <Python 3 binary path>

If you followed the deployment instructions, the command line would be:

virtualenv /opt/mayan-edms -p /usr/bin/python3

If using a dedicated user account for Mayan EDMS:

sudo -u mayan virtualenv --clear /opt/mayan-edms -p /usr/bin/python3