Reinstalling ERPNext app on existing bench setup

Hello,

I’m trying to reinstall erpnext on a server. I’m using the instructions from here to do that. When i’m trying to fetch erpnext using bench get-app command I get the following error.

INFO:bench.app:getting app erpnext
INFO:bench.utils:git clone https://github.com/frappe/erpnext  --depth 1 --origin                                                                              upstream
Cloning into 'erpnext'...
remote: Enumerating objects: 5916, done.
remote: Counting objects: 100% (5916/5916), done.
remote: Compressing objects: 100% (4628/4628), done.
remote: Total 5916 (delta 1765), reused 2754 (delta 1161), pack-reused 0
Receiving objects: 100% (5916/5916), 16.60 MiB | 5.54 MiB/s, done.
Resolving deltas: 100% (1765/1765), done.
Checking connectivity... done.
('installing', u'erpnext')
INFO:bench.app:installing erpnext
INFO:bench.utils:./env/bin/pip install -q  -e ./apps/erpnext
Exception:
Traceback (most recent call last):
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/base                                                                             command.py", line 215, in main
    status = self.run(options, args)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/comm                                                                             ands/install.py", line 335, in run
    wb.build(autobuilding=True)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/whee                                                                             l.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/                                                                             req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/                                                                             req_set.py", line 521, in _prepare_file
    req_to_install.check_if_exists()
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/                                                                             req_install.py", line 1036, in check_if_exists
    self.req.name
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_ven                                                                             dor/pkg_resources/__init__.py", line 558, in get_distribution
    dist = get_provider(dist)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_ven                                                                             dor/pkg_resources/__init__.py", line 432, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_ven                                                                             dor/pkg_resources/__init__.py", line 968, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_ven                                                                             dor/pkg_resources/__init__.py", line 859, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
ContextualVersionConflict: (python-dateutil 2.7.2 (/home/frappe/frappe-bench/env                                                                             /lib/python2.7/site-packages), Requirement.parse('python-dateutil<2.7.0,>=2.1'),                                                                              set(['botocore']))
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/frappe/.bench/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __ca                                                                             ll__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in inv                                                                             oke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invo                                                                             ke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invo                                                                             ke
    return callback(*args, **kwargs)
  File "/home/frappe/.bench/bench/commands/make.py", line 40, in get_app
    get_app(git_url, branch=branch)
  File "/home/frappe/.bench/bench/app.py", line 135, in get_app
    install_app(app=app_name, bench_path=bench_path, verbose=verbose)
  File "/home/frappe/.bench/bench/app.py", line 171, in install_app
    find_links=find_links))
  File "/home/frappe/.bench/bench/utils.py", line 159, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install -q  -e ./apps/erpnext

Can you show more of the trace log?
Looks like your pip environment is not working