Error in new Installation


I am installing new ERPNEXT on Ubuntu 18.04 as per instructions in following site :

I have been successfuly completed all steps & also installed bench,

When I give the command : > bench init erpnext
I get following error commands

File “/usr/local/bin/virtualenv”, line 10, in
File “/usr/local/lib/python2.7/dist-packages/”, line 862, in main
File “/usr/local/lib/python2.7/dist-packages/”, line 1154, in create_environment
install_wheel(to_install, py_executable, search_dirs, download=download)
File “/usr/local/lib/python2.7/dist-packages/”, line 1004, in install_wheel
_install_wheel_with_search_dir(download, project_names, py_executable, search_dirs)
File “/usr/local/lib/python2.7/dist-packages/”, line 1091, in _install_wheel_with_search_dir
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=script)
File “/usr/local/lib/python2.7/dist-packages/”, line 955, in call_subprocess
raise OSError(“Command {} failed with error code {}”.format(cmd_desc, proc.returncode))
OSError: Command /opt/bench/erpnext/env/bin/python - setuptools pip wheel failed with error code 1
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/opt/bench/bench-repo/bench/”, line 40, in cli
File “/usr/local/lib/python2.7/dist-packages/click/”, line 764, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 717, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 555, in invoke
return callback(*args, **kwargs)
File “/opt/bench/bench-repo/bench/commands/”, line 30, in init
python = python)
File “/opt/bench/bench-repo/bench/”, line 65, in init
setup_env(bench_path=path, python = python)
File “/opt/bench/bench-repo/bench/”, line 176, in setup_env
exec_cmd(‘virtualenv -q {} -p {}’.format(‘env’, python), cwd=bench_path)
File “/opt/bench/bench-repo/bench/”, line 159, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: virtualenv -q env -p /usr/bin/python

Ravi Modi

Normally this indicates a permissions error - maybe try it with a sudo

I was able to install erpnext by doing fresh install.