Error installing bench on the server

Hi there,
While running command bench init frappe-bench

Got the following error and am stuck on it:

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-iMpPEY/mysql-python/
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/ujjawal/bench-repo/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/ujjawal/bench-repo/bench/commands/make.py", line 19, in init
    verbose=verbose, clone_from=clone_from)
  File "/home/ujjawal/bench-repo/bench/utils.py", line 56, in init
    get_app(frappe_path, branch=frappe_branch, bench_path=path, build_asset_files=False, verbose=verbose)
  File "/home/ujjawal/bench-repo/bench/app.py", line 73, in get_app
    install_app(app=app_name, bench_path=bench_path, verbose=verbose)
  File "/home/ujjawal/bench-repo/bench/app.py", line 103, in install_app
    find_links=find_links))
  File "/home/ujjawal/bench-repo/bench/utils.py", line 127, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: frappe-bench/env/bin/pip install -q  -e frappe-bench/apps/frappe

Dont know about the error as well.

Try

cd frappe-bench
./env/bin/pip install -e frappe-bench/apps/frappe

And see what error appears.

frappe-bench/apps/frappe should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+

Above is the error.

Not sure what might have caused it, can you restart the whole process again?

I tried it but having the same issue again and again.
Actually i first used easy install method.
So what i did was i just ran the below command because i wanted it for the same user as well i wanted it for both develop and production so didnt mentioned any option there.
It provided a feedback that frappe and erpnext is successfully installed.
But there was no directory created so i went ahead with manual install method.

python install.py

Any update on this??
I tried to do the manual installation as well, but getting the same error.
What’s wrong?

I get that only with the -e / --editable switch on the pip install command. No such error without it.

But note that the command I am using is to pull the PyPi version…

pip3 install frappe-bench # works
# pip3 install -e frappe-bench # *** bad ***