title: ERROR: Failed building wheel for cytoolz when installing web3.py on macOS
body: <p>while trying to do</p>
  <pre><code>pip install web3
  </code></pre>
  <p>I am always getting the following error</p>
  <blockquote>
  <p>Building wheel for cytoolz (setup.py) ... error   ERROR: Command
  errored out with exit status 1:    command:
  /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -u -c
  'import io, os, sys, setuptools, tokenize; sys.argv[0] =
  '&quot;'&quot;'/private/var/folders/gb/5fvn1z1s689bzt7vbll5845c0000gn/T/pip-install-cxwpjegv/cytoolz_88244d2146254468892c582d0b9e33fa/setup.py'&quot;'&quot;';
  <strong>file</strong>='&quot;'&quot;'/private/var/folders/gb/5fvn1z1s689bzt7vbll5845c0000gn/T/pip-install-cxwpjegv/cytoolz_88244d2146254468892c582d0b9e33fa/setup.py'&quot;'&quot;';f
  = getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(<strong>file</strong>) if os.path.exists(<strong>file</strong>) else io.StringIO('&quot;'&quot;'from setuptools import
  setup; setup()'&quot;'&quot;');code = f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;',
  '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, <strong>file</strong>, '&quot;'&quot;'exec'&quot;'&quot;'))'
  bdist_wheel -d
  /private/var/folders/gb/5fvn1z1s689bzt7vbll5845c0000gn/T/pip-wheel-ljv1jb3k
  cwd: /private/var/folders/gb/5fvn1z1s689bzt7vbll5845c0000gn/T/pip-install-cxwpjegv/cytoolz_88244d2146254468892c582d0b9e33fa/
  Complete output (56 lines):   [1/5] Cythonizing cytoolz/utils.pyx<br />
  [2/5] Cythonizing cytoolz/dicttoolz.pyx   [3/5] Cythonizing
  cytoolz/functoolz.pyx   [4/5] Cythonizing cytoolz/itertoolz.pyx<br />
  [5/5] Cythonizing cytoolz/recipes.pyx   running bdist_wheel   running
  build   running build_py   creating build   creating
  build/lib.macosx-10.9-universal2-3.10   creating
  build/lib.macosx-10.9-universal2-3.10/cytoolz   copying
  cytoolz/compatibility.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz   copying
  cytoolz/_version.py -&gt; build/lib.macosx-10.9-universal2-3.10/cytoolz<br />
  copying cytoolz/<strong>init</strong>.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz   copying
  cytoolz/_signatures.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz   creating
  build/lib.macosx-10.9-universal2-3.10/cytoolz/curried   copying
  cytoolz/curried/operator.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/curried   copying
  cytoolz/curried/<strong>init</strong>.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/curried   copying
  cytoolz/curried/exceptions.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/curried   copying
  cytoolz/itertoolz.pyx -&gt; build/lib.macosx-10.9-universal2-3.10/cytoolz
  copying cytoolz/dicttoolz.pyx -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz   copying
  cytoolz/functoolz.pyx -&gt; build/lib.macosx-10.9-universal2-3.10/cytoolz
  copying cytoolz/recipes.pyx -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz   copying
  cytoolz/utils.pyx -&gt; build/lib.macosx-10.9-universal2-3.10/cytoolz<br />
  copying cytoolz/utils.pxd -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz   copying
  cytoolz/<strong>init</strong>.pxd -&gt; build/lib.macosx-10.9-universal2-3.10/cytoolz
  copying cytoolz/recipes.pxd -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz   copying
  cytoolz/functoolz.pxd -&gt; build/lib.macosx-10.9-universal2-3.10/cytoolz
  copying cytoolz/dicttoolz.pxd -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz   copying
  cytoolz/cpython.pxd -&gt; build/lib.macosx-10.9-universal2-3.10/cytoolz<br />
  copying cytoolz/itertoolz.pxd -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz   creating
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_none_safe.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_utils.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_curried.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_compatibility.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_embedded_sigs.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_functoolz.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_inspect_args.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_doctests.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_tlz.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_signatures.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/dev_skip_test.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_recipes.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_docstrings.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_dev_skip_test.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_dicttoolz.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_serialization.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_curried_toolzlike.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   copying
  cytoolz/tests/test_itertoolz.py -&gt;
  build/lib.macosx-10.9-universal2-3.10/cytoolz/tests   running
  build_ext   creating build/temp.macosx-10.9-universal2-3.10   creating
  build/temp.macosx-10.9-universal2-3.10/cytoolz   clang
  -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10
  -c cytoolz/dicttoolz.c -o build/temp.macosx-10.9-universal2-3.10/cytoolz/dicttoolz.o   xcrun:
  error: invalid active developer path
  (/Library/Developer/CommandLineTools), missing xcrun at:
  /Library/Developer/CommandLineTools/usr/bin/xcrun   error: command
  '/usr/bin/clang' failed with exit code 1<br />
  ----------------------------------------   ERROR: Failed building wheel for cytoolz</p>
  </blockquote>
  <p>I have tried to update wheel, installing with sudo, and nothing worked so far,
  would love for some help,
  thanks</p>