Google cloud installation via ssh: Error: cannot import name 'redis_cache' from 'frappe.utils.cachin

how to fix error in erpnext hrms installation in google cloud

after running in /home/frappe/frappe-bench/:
this>> (1) bench --site site1.local install-app hrms

the update only reached 79%
and this is the error:

Error: cannot import name ‘redis_cache’ from ‘frappe.utils.caching’ (/home/frappe/frappe-bench/apps/frappe/frappe/utils/

then performed:

(2) bench update --reset
Result: INFO: A newer version of bench is available: 5.16.2 → 5.22.0

(3) python3 -m pip install --upgrade frappe-bench
Result: Successfully installed frappe-bench-5.22.0 jinja2-3.1.3

then: /home/frappe/frappe-bench/apps$ bench version (4)
erpnext 14.62.3
frappe 14.65.0
hrms 16.0.0-dev

are these versions the latest ones?
if not, what can be used via GCP SSH to get them updated?