ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

How to fix this error ‘bench’ distribution was not found?


Traceback (most recent call last):
File “/home/amolash/.local/bin/bench”, line 5, in
from pkg_resources import load_entry_point
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/”, line 3147, in
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/”, line 3131, in _call_aside
f(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/”, line 3160, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/”, line 666, in _build_master
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/”, line 984, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/”, line 870, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘bench’ distribution was not found and is required by the application

During the app get

Are you installing on which version?


What are you exactly trying to do ? Is it bench start or some bench command ?

Check if you are in the bench instance folder (e.g. frappe-bench or whatever you named that folder while running the init command)


I am trying bench migrate,bench start and bench use command but this gives same error


are you having multiple bench instances i.e. many folders like frappe-bench and so on ?

meanwhile try this command pip install --user -e bench-repo