Issues with running bench frappe install-app

ubuntu@ip-172-31-27-142:~$ bench frappe install-app
Traceback (most recent call last):
File “/home/ubuntu/frappe-bench/env/bin/frappe”, line 5, in
from pkg_resources import load_entry_point
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 3018, in
working_set = WorkingSet._build_master()
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 614, in _build_master
return cls._build_from_requirements(requires)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 627, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 805, in resolve
raise DistributionNotFound(req)

Actually i realised, I run any framework command it will give me the same error. For example,

ubuntu@ip-172-31-27-142:~$ bench frappe mysql
Traceback (most recent call last):
File “/home/ubuntu/frappe-bench/env/bin/frappe”, line 5, in
from pkg_resources import load_entry_point
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 3018, in
working_set = WorkingSet._build_master()
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 614, in _build_master
return cls._build_from_requirements(requires)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 627, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 805, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: frappe==4.13.0

Can anyone help me with this? I can’t run any frappe commands at all.

The commands have changed, try running

cd ~/frappe-bench
bench --help