Try ERPNext Buy Support Partners Foundation

Unable to install on Ubuntu

Getting a recurring error when trying to setup on running this command
$ bench init --frappe-branch version-12 frappe-bench
INFO:bench.utils:virtualenv -q env -p /usr/bin/python3
Traceback (most recent call last):
File “/home/ishita/.local/lib/python2.7/site-packages/”, line 24, in
import distutils.spawn
ModuleNotFoundError: No module named ‘distutils.spawn’
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/ishita/bench/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 “/home/ishita/bench/bench/commands/”, line 31, in init
python = python)
File “/home/ishita/bench/bench/”, line 77, in init
setup_env(bench_path=path, python = python)
File “/home/ishita/bench/bench/”, line 190, in setup_env
exec_cmd(‘virtualenv -q {} -p {}’.format(‘env’, python), cwd=bench_path)
File “/home/ishita/bench/bench/”, line 173, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: virtualenv -q env -p /usr/bin/python3

Please go through this link here you can install frappe from scratch with the prerequisites:

1 Like