How to solve following error?

AFTER USING THIS COMMAND GIVEN ERROR WILL BE OCCUR
bench init frappe-bench && cd frappe-bench

ERROR

Command “/home/satish/work/satish/frappe-bench/env/bin/python -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-2Y5um6/scandir/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-uJUyUZ-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/satish/work/satish/frappe-bench/env/include/site/python2.7/scandir” failed with error code 1 in /tmp/pip-build-2Y5um6/scandir/
Traceback (most recent call last):
File “/home/satish/work/satish/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/satish/work/satish/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/home/satish/work/satish/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/satish/work/satish/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/satish/work/satish/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/satish/work/satish/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/satish/work/satish/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/satish/work/satish/bench-repo/bench/commands/make.py”, line 30, in init
python = python)
File “/home/satish/work/satish/bench-repo/bench/utils.py”, line 75, in init
get_app(frappe_path, branch=frappe_branch, bench_path=path, build_asset_files=False, verbose=verbose)
File “/home/satish/work/satish/bench-repo/bench/app.py”, line 135, in get_app
install_app(app=app_name, bench_path=bench_path, verbose=verbose)
File “/home/satish/work/satish/bench-repo/bench/app.py”, line 179, in install_app
find_links=find_links))
File “/home/satish/work/satish/bench-repo/bench/utils.py”, line 159, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe --no-cache-dir

Is any one can help me to solve this problem??

try the running the same thing but after deactivating the environment.

Also running the same command will you throw an error that frappe-bench already exists. so either use a new folder name or delete the current folder and start over

1 Like

ok thanks