Error during bench init

ERROR: Could not find a version that satisfies the requirement RestrictedPython~=5.1 (from frappe) (from versions: 3.4.2, 3.4.3, 3.5.0, 3.5.1, 3.5.2, 3.6.0a1, 3.6.0, 4.0a1, 4.0a2, 4.0a3, 4.0b1, 4.0b2, 4.0b3, 4.0b4, 4.0b5, 4.0b6, 4.0b7, 4.0b8, 4.0, 5.0, 5.2a1.dev0)

ERROR: No matching distribution found for RestrictedPython~=5.1
(bench-env) dipanshugupta@Dipanshus-MacBook-Air Frappe % bench init frappe-bench

$ /Users/dipanshugupta/Documents/Frappe/bench-env/bin/virtualenv -q env -p python3

Getting frappe

$ git clone https://github.com/frappe/frappe.git --depth 1 --origin upstream

Cloning into 'frappe'...

remote: Enumerating objects: 3083, done.

remote: Counting objects: 100% (3083/3083), done.

remote: Compressing objects: 100% (2754/2754), done.

remote: Total 3083 (delta 432), reused 1341 (delta 245), pack-reused 0

Receiving objects: 100% (3083/3083), 16.45 MiB | 384.00 KiB/s, done.

Resolving deltas: 100% (432/432), done.

Installing frappe

$ frappe-bench/env/bin/python -m pip install -q -U -e frappe-bench/apps/frappe

ERROR: Could not find a version that satisfies the requirement RestrictedPython~=5.1 (from frappe) (from versions: 3.4.2, 3.4.3, 3.5.0, 3.5.1, 3.5.2, 3.6.0a1, 3.6.0, 4.0a1, 4.0a2, 4.0a3, 4.0b1, 4.0b2, 4.0b3, 4.0b4, 4.0b5, 4.0b6, 4.0b7, 4.0b8, 4.0, 5.0, 5.2a1.dev0)

ERROR: No matching distribution found for RestrictedPython~=5.1

$ yarn install

**yarn install v1.22.17**

[1/5] 🔍 Validating package.json...