'Box2D instalation failing

I'm trying to build an environment 'BipedalWalker-v3' in gym, however when I try installing it I get an error message:

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
  ERROR: Failed building wheel for box2d-py

This should be an easy fix but when I dowload the C++ Build Tools from the link given by the error message nothing the error still shows up.

enter image description here

Here is my full error message:

 ERROR: Command errored out with exit status 1:
   command: 'D:\anaconda\envs\AI\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\grave\\AppData\\Local\\Temp\\pip-install-o62b6asf\\box2d-py_ce44bceaa330465bad75333e67d596e8\\setup.py'"'"'; __
file__='"'"'C:\\Users\\grave\\AppData\\Local\\Temp\\pip-install-o62b6asf\\box2d-py_ce44bceaa330465bad75333e67d596e8\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'
from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\grave\AppData\Local\Temp\pip-wheel-fgoi1a9a'
       cwd: C:\Users\grave\AppData\Local\Temp\pip-install-o62b6asf\box2d-py_ce44bceaa330465bad75333e67d596e8\
  Complete output (28 lines):
  Using setuptools (version 61.2.0).
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.9
  creating build\lib.win-amd64-3.9\Box2D
  copying library\Box2D\Box2D.py -> build\lib.win-amd64-3.9\Box2D
  copying library\Box2D\__init__.py -> build\lib.win-amd64-3.9\Box2D
  creating build\lib.win-amd64-3.9\Box2D\b2
  copying library\Box2D\b2\__init__.py -> build\lib.win-amd64-3.9\Box2D\b2
  running build_ext
  building 'Box2D._Box2D' extension
  swigging Box2D\Box2D.i to Box2D\Box2D_wrap.cpp
  swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir library\Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D\Box2D_wrap.cpp Box2D\Box2D.i
  Box2D\Common\b2Math.h(67) : Warning 302: Identifier 'b2Vec2' redefined by %extend (ignored),
  Box2D\Box2D_math.i(47) : Warning 302: %extend definition of 'b2Vec2'.
  Box2D\Common\b2Math.h(158) : Warning 302: Identifier 'b2Vec3' redefined by %extend (ignored),
  Box2D\Box2D_math.i(168) : Warning 302: %extend definition of 'b2Vec3'.
  Box2D\Common\b2Math.h(197) : Warning 302: Identifier 'b2Mat22' redefined by %extend (ignored),
  Box2D\Box2D_math.i(301) : Warning 302: %extend definition of 'b2Mat22'.
  Box2D\Common\b2Math.h(271) : Warning 302: Identifier 'b2Mat33' redefined by %extend (ignored),
  Box2D\Box2D_math.i(372) : Warning 302: %extend definition of 'b2Mat33'.
  Box2D\Collision\b2DynamicTree.h(44) : Warning 312: Nested union not currently supported (ignored).
  Box2D\Common\b2Settings.h(144) : Warning 506: Can't wrap varargs with keyword arguments enabled
  Box2D\Common\b2Math.h(91) : Warning 509: Overloaded method b2Vec2::operator ()(int32) effectively ignored,
  Box2D\Common\b2Math.h(85) : Warning 509: as it is shadowed by b2Vec2::operator ()(int32) const.
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
  ERROR: Failed building wheel for box2d-py
  Running setup.py clean for box2d-py


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source