Update Python Libraries¶
NearBeach’s python libraries will need to be updated for security and performance.
Warning
Please try the updates on a non-production environment first. We can not stop 3rd party libraries from breaking your server environment.
Method¶
- You will need to be in your virtual environment
source <<virtualenv_location>>/bin/activate
- Find out which libraries need to be updated
pip list --outdatedTake note which packages need to be updated.
- Use the following command to update the packages
pip install --upgrade <<package_name>>Run this for ALL packages, please note you can string the packages into one command.
pip install --upgrade django pillow
- Restart gunicorn and nginx
sudo service gunicorn restart sudo service nginx restart
Note
Do not use the above method to update NearBeach. Please follow the instructions located in chapter “Update Or Patch NearBeach”