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/init.py”, line 3088, in
@_call_aside
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 3072, in _call_aside
f(*args, **kwargs)
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 3101, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 574, in _build_master
ws.require(requires)
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 892, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, 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

PATH=$PATH:~/.local/bin/

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

Home · frappe/frappe Wiki · GitHub

It worked for me.

5 Likes

Welcome @benjamin

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

If solved, please close this discussion.

Thanks It works!