Detailed steps to install & bench initializing errors

hello… Could you help me to install Frappe Framework from scratch as it giving me too many errors on Ubuntu 16.04 LTS. And i have used commands from GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps yet it gives exception or errors like:
pip install -e bench-repo
Obtaining file:///home/innolearn/bench-repo
Collecting Click (from bench==3.0.0)
Collecting jinja2 (from bench==3.0.0)
Using cached Jinja2-2.8-py2.py3-none-any.whl
Collecting virtualenv (from bench==3.0.0)
Using cached virtualenv-15.0.1-py2.py3-none-any.whl
Collecting requests (from bench==3.0.0)
Using cached requests-2.10.0-py2.py3-none-any.whl
Collecting honcho (from bench==3.0.0)
Using cached honcho-0.7.1-py2.py3-none-any.whl
Collecting semantic-version (from bench==3.0.0)
Collecting GitPython==0.3.2.rc1 (from bench==3.0.0)
Collecting MarkupSafe (from jinja2->bench==3.0.0)
Collecting gitdb>=0.5.1 (from GitPython==0.3.2.rc1->bench==3.0.0)
Collecting smmap>=0.8.5 (from gitdb>=0.5.1->GitPython==0.3.2.rc1->bench==3.0.0)
Installing collected packages: Click, MarkupSafe, jinja2, virtualenv, requests, honcho, semantic-version, smmap, gitdb, GitPython, bench
Exception:
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/pip/basecommand.py”, line 209, in main
status = self.run(options, args)
File “/usr/local/lib/python2.7/dist-packages/pip/commands/install.py”, line 317, in run
prefix=options.prefix_path,
File “/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py”, line 732, in install
**kwargs
File “/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py”, line 835, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File “/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py”, line 1030, in move_wheel_files
isolated=self.isolated,
File “/usr/local/lib/python2.7/dist-packages/pip/wheel.py”, line 344, in move_wheel_files
clobber(source, lib_dir, True)
File “/usr/local/lib/python2.7/dist-packages/pip/wheel.py”, line 315, in clobber
ensure_dir(destdir)
File “/usr/local/lib/python2.7/dist-packages/pip/utils/init.py”, line 83, in ensure_dir
os.makedirs(path)
File “/usr/lib/python2.7/os.py”, line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: ‘/usr/local/lib/python2.7/dist-packages/click’

You need to pass sudo with pip install i.e sudo pip install...

Are you using a script? We don’t officially support 16.04 yet. However, you can manually install MariaDB and then run our Beta Script

I cannot guarantee you as of this point if it will work successfully or not. We plan to release an update to make it work with 16.04 soon.

So, could you let me know that on which version of Ubuntu it is working properly so that i could format asap and start working on it & also let me know the procedure to install it.

Use Ubuntu 15.04.

Everything you need to know is on the readme of the Bench Repository

bench is not getting updated nor its initializing…
bench update --bench
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==3.0.0’, ‘console_scripts’, ‘bench’)()
File “/home/innolearn/Demo/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/innolearn/Demo/bench-repo/bench/commands/update.py”, line 27, in update
patches.run(bench_path=‘.’)
File “/home/innolearn/Demo/bench-repo/bench/patches/init.py”, line 21, in run
result = execute(bench_path)
File “/home/innolearn/Demo/bench-repo/bench/patches/v3/celery_to_rq.py”, line 7, in execute
frappe_branch = get_current_branch(‘frappe’, bench_path)
File “/home/innolearn/Demo/bench-repo/bench/app.py”, line 118, in get_current_branch
return get_cmd_output(“basename $(git symbolic-ref -q HEAD)”, cwd=repo_dir)
File “/home/innolearn/Demo/bench-repo/bench/utils.py”, line 264, in get_cmd_output
return subprocess.check_output(cmd, cwd=cwd, shell=True, stderr=open(os.devnull, ‘wb’)).strip()
File “/usr/lib/python2.7/subprocess.py”, line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File “/usr/lib/python2.7/subprocess.py”, line 710, in init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: ‘./apps/frappe’

bench init frappe-bench
Already using interpreter /usr/bin/python
INFO:bench.app:getting app frappe
Cloning into ‘frappe’…
remote: Counting objects: 1630, done.
remote: Compressing objects: 100% (1499/1499), done.
remote: Total 1630 (delta 195), reused 716 (delta 79), pack-reused 0
Receiving objects: 100% (1630/1630), 9.94 MiB | 1.65 MiB/s, done.
Resolving deltas: 100% (195/195), done.
Checking connectivity… done.
installing frappe
INFO:bench.app:installing frappe
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-a4Cj18/mysql-python/
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==3.0.0’, ‘console_scripts’, ‘bench’)()
File “/home/innolearn/Demo/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/innolearn/Demo/bench-repo/bench/commands/make.py”, line 17, in init
no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch, verbose=verbose)
File “/home/innolearn/Demo/bench-repo/bench/utils.py”, line 62, in init
get_app(‘frappe’, frappe_path, branch=frappe_branch, bench=path, build_asset_files=False, verbose=verbose)
File “/home/innolearn/Demo/bench-repo/bench/app.py”, line 57, in get_app
install_app(app, bench=bench, verbose=verbose)
File “/home/innolearn/Demo/bench-repo/bench/app.py”, line 83, in install_app
find_links=find_links))
File “/home/innolearn/Demo/bench-repo/bench/utils.py”, line 99, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe

Can someone please help?