title: Problems installing cytoolz on Python@3.10
body: <p>I am trying to install <code>cytoolz</code> in <code>virtualenv</code>:</p>
  <ol>
  <li><code>Python</code> version = <code>3.10.0</code></li>
  <li><code>Pip</code> version = <code>21.3.1</code></li>
  </ol>
  <p>After running <code>pip install cytoolz</code> in the <strong>activated</strong> virtualenv I am getting the following log:</p>
  <pre><code>Collecting cytoolz
    Using cached cytoolz-0.11.0.tar.gz (477 kB)
    Preparing metadata (setup.py) ... done
  Requirement already satisfied: toolz&gt;=0.8.0 in ./env/lib/python3.10/site-packages (from cytoolz) (0.11.1)
  Building wheels for collected packages: cytoolz
    Building wheel for cytoolz (setup.py) ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/hristotodorov/Documents/Vyper/env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/private/var/folders/5y/q2vqps3s0jq7nc73z2zgmpmr0000gn/T/pip-install-0ebpvw2k/cytoolz_455f12fc06374667a15ffeeafa952f0f/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/private/var/folders/5y/q2vqps3s0jq7nc73z2zgmpmr0000gn/T/pip-install-0ebpvw2k/cytoolz_455f12fc06374667a15ffeeafa952f0f/setup.py'&quot;'&quot;';f = getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__) if os.path.exists(__file__) 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, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' bdist_wheel -d /private/var/folders/5y/q2vqps3s0jq7nc73z2zgmpmr0000gn/T/pip-wheel-czxvyqb8
         cwd: /private/var/folders/5y/q2vqps3s0jq7nc73z2zgmpmr0000gn/T/pip-install-0ebpvw2k/cytoolz_455f12fc06374667a15ffeeafa952f0f/
    Complete output (75 lines):
    ALERT: Cython not installed.  Building without Cython.
    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/utils_test.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
    copying cytoolz/__init__.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/__init__.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
    copying cytoolz/utils.pxd -&gt; build/lib.macosx-10.9-universal2-3.10/cytoolz
    copying cytoolz/__init__.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
    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
    building 'cytoolz.dicttoolz' extension
    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/Users/hristotodorov/Documents/Vyper/env/include -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
    clang -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -g build/temp.macosx-10.9-universal2-3.10/cytoolz/dicttoolz.o -o build/lib.macosx-10.9-universal2-3.10/cytoolz/dicttoolz.cpython-310-darwin.so
    building 'cytoolz.functoolz' extension
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/hristotodorov/Documents/Vyper/env/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c cytoolz/functoolz.c -o build/temp.macosx-10.9-universal2-3.10/cytoolz/functoolz.o
    cytoolz/functoolz.c:23087:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                      ^
    cytoolz/functoolz.c:23087:17: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
                ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cytoolz/functoolz.c:23092:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                      ^
    cytoolz/functoolz.c:23092:17: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
                ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cytoolz/functoolz.c:23176:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                ret = _PyGen_Send((PyGenObject*)yf, NULL);
                      ^
    cytoolz/functoolz.c:23176:17: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
                ret = _PyGen_Send((PyGenObject*)yf, NULL);
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    3 warnings and 3 errors generated.
    error: command '/usr/bin/clang' failed with exit code 1
    ----------------------------------------
    ERROR: Failed building wheel for cytoolz
    Running setup.py clean for cytoolz
  Failed to build cytoolz
  Installing collected packages: cytoolz
      Running setup.py install for cytoolz ... error
      ERROR: Command errored out with exit status 1:
       command: /Users/hristotodorov/Documents/Vyper/env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/private/var/folders/5y/q2vqps3s0jq7nc73z2zgmpmr0000gn/T/pip-install-0ebpvw2k/cytoolz_455f12fc06374667a15ffeeafa952f0f/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/private/var/folders/5y/q2vqps3s0jq7nc73z2zgmpmr0000gn/T/pip-install-0ebpvw2k/cytoolz_455f12fc06374667a15ffeeafa952f0f/setup.py'&quot;'&quot;';f = getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__) if os.path.exists(__file__) 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, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record /private/var/folders/5y/q2vqps3s0jq7nc73z2zgmpmr0000gn/T/pip-record-s_w__7qh/install-record.txt --single-version-externally-managed --compile --install-headers /Users/hristotodorov/Documents/Vyper/env/include/site/python3.10/cytoolz
           cwd: /private/var/folders/5y/q2vqps3s0jq7nc73z2zgmpmr0000gn/T/pip-install-0ebpvw2k/cytoolz_455f12fc06374667a15ffeeafa952f0f/
      Complete output (77 lines):
      ALERT: Cython not installed.  Building without Cython.
      running install
      /Users/hristotodorov/Documents/Vyper/env/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      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/utils_test.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
      copying cytoolz/__init__.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/__init__.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
      copying cytoolz/utils.pxd -&gt; build/lib.macosx-10.9-universal2-3.10/cytoolz
      copying cytoolz/__init__.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
      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
      building 'cytoolz.dicttoolz' extension
      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/Users/hristotodorov/Documents/Vyper/env/include -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
      clang -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -g build/temp.macosx-10.9-universal2-3.10/cytoolz/dicttoolz.o -o build/lib.macosx-10.9-universal2-3.10/cytoolz/dicttoolz.cpython-310-darwin.so
      building 'cytoolz.functoolz' extension
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/hristotodorov/Documents/Vyper/env/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c cytoolz/functoolz.c -o build/temp.macosx-10.9-universal2-3.10/cytoolz/functoolz.o
      cytoolz/functoolz.c:23087:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                  ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                        ^
      cytoolz/functoolz.c:23087:17: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
                  ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cytoolz/functoolz.c:23092:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                  ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                        ^
      cytoolz/functoolz.c:23092:17: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
                  ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cytoolz/functoolz.c:23176:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                  ret = _PyGen_Send((PyGenObject*)yf, NULL);
                        ^
      cytoolz/functoolz.c:23176:17: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
                  ret = _PyGen_Send((PyGenObject*)yf, NULL);
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      3 warnings and 3 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /Users/hristotodorov/Documents/Vyper/env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/private/var/folders/5y/q2vqps3s0jq7nc73z2zgmpmr0000gn/T/pip-install-0ebpvw2k/cytoolz_455f12fc06374667a15ffeeafa952f0f/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/private/var/folders/5y/q2vqps3s0jq7nc73z2zgmpmr0000gn/T/pip-install-0ebpvw2k/cytoolz_455f12fc06374667a15ffeeafa952f0f/setup.py'&quot;'&quot;';f = getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__) if os.path.exists(__file__) 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, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record /private/var/folders/5y/q2vqps3s0jq7nc73z2zgmpmr0000gn/T/pip-record-s_w__7qh/install-record.txt --single-version-externally-managed --compile --install-headers /Users/hristotodorov/Documents/Vyper/env/include/site/python3.10/cytoolz Check the logs for full command output.
  
  </code></pre>
  <p>It appears that there is a problem with the installation of the <code>cytoolz</code> package.
  Running <code>pip install cytoolz</code> produces the same error.
  How can I fix that?</p>
  <p>Edit: As mention bellow in the comments the problem is not in the <code>eth-brownie</code> but in the <code>cytoolz</code>. <a href="https://github.com/pytoolz/cytoolz/issues/151" rel="nofollow noreferrer">Here</a> you can find an open issue in Github.</p>