Error when trying bench init frappe-bench && cd frappe-bench

Hi,
erpnext@erpnext1:~$ bench init frappe-bench && cd frappe-bench
Already using interpreter /usr/bin/python
/var/www/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning

/var/www/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
INFO:bench.app:getting app frappe
Cloning into ‘frappe’…
remote: Counting objects: 91822, done.
remote: Compressing objects: 100% (111/111), done.
remote: Total 91822 (delta 60), reused 0 (delta 0), pack-reused 91711
Receiving objects: 100% (91822/91822), 66.98 MiB | 14.25 MiB/s, done.
Resolving deltas: 100% (67289/67289), done.
Checking connectivity… done.
installing frappe
INFO:bench.app:installing frappe
Command “/var/www/erpnext/frappe-bench/env/bin/python -u -c “import setuptools, tokenize;file=’/tmp/pip-build-A9M6St/Pillow/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-rQBCDM-record/install-record.txt --single-version-externally-managed --compile --install-headers /var/www/erpnext/frappe-bench/env/include/site/python2.7/Pillow” failed with error code 1 in /tmp/pip-build-A9M6St/Pillow
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.0.0’, ‘console_scripts’, ‘bench’)()
File “/var/www/erpnext/bench-repo/bench/cli.py”, line 60, in cli
bench()
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 “/var/www/erpnext/bench-repo/bench/cli.py”, line 166, in init
no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch, verbose=verbose)
File “/var/www/erpnext/bench-repo/bench/utils.py”, line 72, in init
get_app(‘frappe’, frappe_path, branch=frappe_branch, bench=path, build_asset_files=False, verbose=verbose)
File “/var/www/erpnext/bench-repo/bench/app.py”, line 54, in get_app
install_app(app, bench=bench, verbose=verbose)
File “/var/www/erpnext/bench-repo/bench/app.py”, line 80, in install_app
find_links=find_links))
File “/var/www/erpnext/bench-repo/bench/utils.py”, line 105, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe

Hi @sorabh,

Command "/var/www/erpnext/frappe-bench/env/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-A9M6St/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file,
 'exec'))" install --record /tmp/pip-rQBCDM-record/install-record.txt 
--single-version-externally-managed --compile --install-headers 
/var/www/erpnext/frappe-bench/env/include/site/python2.7/Pillow" failed 
with error code 1 in /tmp/pip-build-A9M6St/Pillow

please check this link

Issue Resolved. Thank you