These instructions describe how to upgrade a source install of CKAN 2.9 from python2 to python3, which is necessary because python2 is end of life, as of 31st December 2019.
- Backup your CKAN source, virtualenv and databases, just in case.
- Upgrade to CKAN 2.9, if you've not done already.
You'll probably need to deactivate your existing virtual environment:
deactivate
The existing setup has the virtual environment here: |virtualenv| and the CKAN source code underneath in /usr/lib/ckan/default/src. We'll move that aside in case we need to roll-back:
sudo mv |virtualenv| /usr/lib/ckan/py2
From this doc: :doc:`/maintaining/installing/install-from-source` you need to do these sections:
- Install the required packages
- Install CKAN into a Python virtual environment
- Link to who.ini