Bench init error on installation

Hello,
I am trying to setup erpnext on my mac.
I am following this guideline ( https://github.com/frappe/bench/wiki/Turning-a-Mac-into-a-Frappe-Framework-Developer-Machine ) , but I am stuck on “Setting up Frappe Bench”, step 3, where I have to run

bench init frappe-bench --frappe-branch master

This is the error:

INFO:bench.utils:frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe --no-cache-dir
Command “/Users/aldoec/Desktop/Dev/frappe-bench/env/bin/python2.7 -u -c “import setuptools, tokenize;file=’/private/var/folders/93/7d2wj24d0cv7xnrph6ymcj2r0000gn/T/pip-build-y7wfe2/mysqlclient/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /var/folders/93/7d2wj24d0cv7xnrph6ymcj2r0000gn/T/pip-sg_s2e-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/aldoec/Desktop/Dev/frappe-bench/env/bin/…/include/site/python2.7/mysqlclient” failed with error code 1 in /private/var/folders/93/7d2wj24d0cv7xnrph6ymcj2r0000gn/T/pip-build-y7wfe2/mysqlclient/
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/Users/aldoec/Desktop/Dev/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/Users/aldoec/Desktop/Dev/bench-repo/bench/commands/make.py”, line 19, in init
verbose=verbose, clone_from=clone_from)
File “/Users/aldoec/Desktop/Dev/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 “/Users/aldoec/Desktop/Dev/bench-repo/bench/app.py”, line 76, in get_app
install_app(app=app_name, bench_path=bench_path, verbose=verbose)
File “/Users/aldoec/Desktop/Dev/bench-repo/bench/app.py”, line 107, in install_app
find_links=find_links))
File “/Users/aldoec/Desktop/Dev/bench-repo/bench/utils.py”, line 130, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe --no-cache-dir

Please check the following link

try to run

env/bin/pip install pymysql
env/bin/pip install mysqlclient

The first one worked. The second one gives me this error.

Failed building wheel for mysqlclient

I am having the same problem.

Same problem. CentOS 7. Has anyone figured this out?

I did manage to solve this particular error by:

However in the end I could never successfully complete the installation on CentOS. Gave up and moved to Ubuntu.