Solved by peterjc123 in post #2 
              
              
                Actually, you’ll need to append the directory of python37_d.lib to the environment variable LIB. And I vaguely remember that it will then fail with something else that I cannot resolve.