title: Error while installing web3 on vscode Windows 10
body: <p>I have been trying to install web3 using 'pip install web3'. I am getting the following error.</p>
  <p>After looking at a few other threads I have already installed Visual Studio Build Tools from <a href="https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&amp;rel=16" rel="nofollow noreferrer">https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&amp;rel=16</a></p>
  <p>However, the error persists. I do not have the log from the error I installed the build tools. From what I remember it was also related to cytoolz, but the error was slightly different. The current error is below. I have already spent 4 hours trying to fix this, any help is much appreciated.</p>
  <pre><code>  Running setup.py install for cytoolz ... error
      ERROR: Command errored out with exit status 1:
       command: 'C:\Users\A\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\A\\AppData\\Local\\Temp\\pip-install-dnghcqjq\\cytoolz_26dc3d7054a14b8fa2d483e2f670ba5d\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\A\\AppData\\Local\\Temp\\pip-install-dnghcqjq\\cytoolz_26dc3d7054a14b8fa2d483e2f670ba5d\\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 'C:\Users\A\AppData\Local\Temp\pip-record-it_4rnu0\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\A\AppData\Local\Programs\Python\Python310\Include\cytoolz'
           cwd: C:\Users\A\AppData\Local\Temp\pip-install-dnghcqjq\cytoolz_26dc3d7054a14b8fa2d483e2f670ba5d\
      Complete output (70 lines):
      ALERT: Cython not installed.  Building without Cython.
      running install
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.10
      creating build\lib.win-amd64-3.10\cytoolz
      copying cytoolz\compatibility.py -&gt; build\lib.win-amd64-3.10\cytoolz     
      copying cytoolz\utils_test.py -&gt; build\lib.win-amd64-3.10\cytoolz        
      copying cytoolz\_signatures.py -&gt; build\lib.win-amd64-3.10\cytoolz       
      copying cytoolz\_version.py -&gt; build\lib.win-amd64-3.10\cytoolz
      copying cytoolz\__init__.py -&gt; build\lib.win-amd64-3.10\cytoolz
      creating build\lib.win-amd64-3.10\cytoolz\curried
      copying cytoolz\curried\exceptions.py -&gt; build\lib.win-amd64-3.10\cytoolz\curried
      copying cytoolz\curried\operator.py -&gt; build\lib.win-amd64-3.10\cytoolz\curried
      copying cytoolz\curried\__init__.py -&gt; build\lib.win-amd64-3.10\cytoolz\curried
      copying cytoolz\dicttoolz.pyx -&gt; build\lib.win-amd64-3.10\cytoolz        
      copying cytoolz\functoolz.pyx -&gt; build\lib.win-amd64-3.10\cytoolz        
      copying cytoolz\itertoolz.pyx -&gt; build\lib.win-amd64-3.10\cytoolz        
      copying cytoolz\recipes.pyx -&gt; build\lib.win-amd64-3.10\cytoolz
      copying cytoolz\utils.pyx -&gt; build\lib.win-amd64-3.10\cytoolz
      copying cytoolz\cpython.pxd -&gt; build\lib.win-amd64-3.10\cytoolz
      copying cytoolz\dicttoolz.pxd -&gt; build\lib.win-amd64-3.10\cytoolz        
      copying cytoolz\functoolz.pxd -&gt; build\lib.win-amd64-3.10\cytoolz        
      copying cytoolz\itertoolz.pxd -&gt; build\lib.win-amd64-3.10\cytoolz        
      copying cytoolz\recipes.pxd -&gt; build\lib.win-amd64-3.10\cytoolz
      copying cytoolz\utils.pxd -&gt; build\lib.win-amd64-3.10\cytoolz
      copying cytoolz\__init__.pxd -&gt; build\lib.win-amd64-3.10\cytoolz
      creating build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\dev_skip_test.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_compatibility.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_curried.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_curried_toolzlike.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_dev_skip_test.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_dicttoolz.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_docstrings.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_doctests.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_embedded_sigs.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_functoolz.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_inspect_args.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_itertoolz.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_none_safe.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_recipes.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_serialization.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_signatures.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_tlz.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      copying cytoolz\tests\test_utils.py -&gt; build\lib.win-amd64-3.10\cytoolz\tests
      running build_ext
      building 'cytoolz.dicttoolz' extension
      creating build\temp.win-amd64-3.10
      creating build\temp.win-amd64-3.10\Release
      creating build\temp.win-amd64-3.10\Release\cytoolz
      C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\A\AppData\Local\Programs\Python\Python310\include -IC:\Users\A\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tccytoolz/dicttoolz.c /Fobuild\temp.win-amd64-3.10\Release\cytoolz/dicttoolz.obj
      dicttoolz.c
      C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\A\AppData\Local\Programs\Python\Python310\libs /LIBPATH:C:\Users\A\AppData\Local\Programs\Python\Python310\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64 /EXPORT:PyInit_dicttoolz build\temp.win-amd64-3.10\Release\cytoolz/dicttoolz.obj /OUT:build\lib.win-amd64-3.10\cytoolz\dicttoolz.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\cytoolz\dicttoolz.cp310-win_amd64.lib
         Creating library build\temp.win-amd64-3.10\Release\cytoolz\dicttoolz.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\cytoolz\dicttoolz.cp310-win_amd64.exp
      Generating code
      Finished generating code
      building 'cytoolz.functoolz' extension
      C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\A\AppData\Local\Programs\Python\Python310\include -IC:\Users\A\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tccytoolz/functoolz.c /Fobuild\temp.win-amd64-3.10\Release\cytoolz/functoolz.obj
      functoolz.c
      cytoolz/functoolz.c(23087): warning C4013: '_PyGen_Send' undefined; assuming extern returning int
      cytoolz/functoolz.c(23087): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int'
      cytoolz/functoolz.c(23092): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int'
      cytoolz/functoolz.c(23176): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int'
      C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\A\AppData\Local\Programs\Python\Python310\libs /LIBPATH:C:\Users\A\AppData\Local\Programs\Python\Python310\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64 /EXPORT:PyInit_functoolz build\temp.win-amd64-3.10\Release\cytoolz/functoolz.obj /OUT:build\lib.win-amd64-3.10\cytoolz\functoolz.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\cytoolz\functoolz.cp310-win_amd64.lib
         Creating library build\temp.win-amd64-3.10\Release\cytoolz\functoolz.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\cytoolz\functoolz.cp310-win_amd64.exp
      functoolz.obj : error LNK2001: unresolved external symbol _PyGen_Send    
      build\lib.win-amd64-3.10\cytoolz\functoolz.cp310-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\link.exe' failed 
  with exit code 1120
      ----------------------------------------
  ERROR: Command errored out with exit status 1: 'C:\Users\A\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\A\\AppData\\Local\\Temp\\pip-install-dnghcqjq\\cytoolz_26dc3d7054a14b8fa2d483e2f670ba5d\\setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'C:\\Users\\A\\AppData\\Local\\Temp\\pip-install-dnghcqjq\\cytoolz_26dc3d7054a14b8fa2d483e2f670ba5d\\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 'C:\Users\A\AppData\Local\Temp\pip-record-it_4rnu0\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\A\AppData\Local\Programs\Python\Python310\Include\cytoolz' Check the logs for full command output.
  </code></pre>