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/virtualenv.py”, 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/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/ishita/bench/bench/commands/make.py”, line 31, in init
python = python)
File “/home/ishita/bench/bench/utils.py”, line 77, in init
setup_env(bench_path=path, python = python)
File “/home/ishita/bench/bench/utils.py”, line 190, in setup_env
exec_cmd(‘virtualenv -q {} -p {}’.format(‘env’, python), cwd=bench_path)
File “/home/ishita/bench/bench/utils.py”, 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:https://github.com/frappe/frappe/wiki/Guide:-Manual-Install-ERPNext-on-Ubuntu-17.xx-and-18.xx-(develop-branch)

1 Like