Setting up Production server error

Hello Team

I tried setting a production server so i will be able to use multitenant but i am faced with this error when when trying to add app

ubuntu@ip-172-31-54-98:~/frappe-bench$ bench get-app erpnext https://github.com/frappe/erpnext
INFO:bench.app:getting app erpnext
Cloning into ‘erpnext’…
remote: Counting objects: 198786, done.
remote: Compressing objects: 100% (199/199), done.
remote: Total 198786 (delta 105), reused 0 (delta 0), pack-reused 198587
Receiving objects: 100% (198786/198786), 279.00 MiB | 14.82 MiB/s, done.
Resolving deltas: 100% (149410/149410), done.
Checking connectivity… done.
Checking out files: 100% (4450/4450), done.
installing erpnext
INFO:bench.app:installing erpnext
/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:318: 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. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-c6bK6Y/frappe/
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/ubuntu/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/ubuntu/bench-repo/bench/commands/make.py”, line 30, in get_app
get_app(git_url, branch=branch)
File “/home/ubuntu/bench-repo/bench/app.py”, line 73, in get_app
install_app(app=app_name, bench_path=bench_path, verbose=verbose)
File “/home/ubuntu/bench-repo/bench/app.py”, line 103, in install_app
find_links=find_links))
File “/home/ubuntu/bench-repo/bench/utils.py”, line 127, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install -q -e ./apps/erpnext
ubuntu@ip-172-31-54-98:~/frappe-bench$

Searching the forum by Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build gives following results:


With possible solutions as:

1.[quote=“rmehta, post:2, topic:17858, full:true”]
Try running ./env/bin/pip install mysql-python
[/quote]