Try ERPNext Buy Support Partners Foundation

Error erpnext virtualenv

Hello
I install erpnext on
ubuntu 18.04.3 64bit
on virtualbox
and I follow this link


and I got this error
when i run:
bench init erpnext

bench init erpnext
INFO:bench.utils:virtualenv -q env -p /usr/bin/python3
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/virtualenv.py”, line 22, 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 “/srv/bench/bench-repo/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 “/srv/bench/bench-repo/bench/commands/make.py”, line 31, in init
python = python)
File “/srv/bench/bench-repo/bench/utils.py”, line 65, in init
setup_env(bench_path=path, python = python)
File “/srv/bench/bench-repo/bench/utils.py”, line 178, in setup_env
exec_cmd(‘virtualenv -q {} -p {}’.format(‘env’, python), cwd=bench_path)
File “/srv/bench/bench-repo/bench/utils.py”, line 161, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: virtualenv -q env -p /usr/bin/python3

Any help please.
Thanks

Welcome to ERPNext - one of these may help with pointers https://discuss.erpnext.com/search?q=ModuleNotFoundError%3A%20No%20module%20named%20‘distutils.spawn’