Restore bench update error

Getting this on a server where os was upgraded and ERPNext stopped working. Trying to run bench update to start the restore process and getting this:
Installing collected packages: Pillow
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/home/frappe/frappe-bench/env/lib/python2.7/site-packages/PIL’
Consider using the --user option or check the permissions.

Are you logged in as frappe?

Kind regards,

yes have tried resetting permissions also any suggestions greatly appreciated don’t want to have to delete and reinstall.

the version was updated in November why is it only showing version 4?
bench --version

these are already installed yet still get above error:
sudo apt-get install -y libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk