How to fix this issue?

Run deactivate

And try again.

1 Like

same error its not working

Is bench installed?

bench --version

Clone the bench in home/[username]/ using following command:

git clone GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps --branch master or develop (as per production/development environment).

Then install the cloned bench using:
sudo pip install ./bench/

Use prefix sudo if you want to install the bench in global environments otherwise use home//frappe-bench/env/bin/pip command to install in user specific environment(NOTE: deactivate the python environment and activate again after installation of bench).

distribution not found means someone has deleted the bench repository files or your bench update command has failed. So you need to install it again.

1 Like

ohk thanks