How I install ERPNext on Ubuntu 18.04

I tried to install bench using ‘easy setup’ but it fails because my machine is ubuntu 18.04. Then I tried to manual setup but bench not run after ‘pip install --user -e bench-repo’ command.

when i enter

bench init frappe-bench && cd frappe-bench

It returns

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

How can I install ERPNext on ubuntu 18.04? is there any easy way to setup?

Add this line to your ~/.bashrc file


Restart your shell using

exec bash

Now you can delete the frappe-bench folder and try the command again

bench init frappe-bench && cd frappe-bench
1 Like

I used a different setup for my 18.04

Try and follow the steps in this link’s-Guide-to-Installing-Frappé-on-Linux-OS

It worked for me.


Welcome @benjamin

Of course it worked , it’s made by @codingCoffee.

If solved, please close this discussion.

Thanks It works!