Hi Binoy,
Thank you for sharing the dump files and I apologize for the delayed response.
I have checked the crash dump files provided by you and the two drivers that came up as the cause was Smb_driver_AMDASF.sys and rt640x64.sys which are aligned to Synaptics Touchpad and Realtek.
However, as the blue screen occurs only when the Python adds the path to Environment Variables, we may have to check a few things.
One of the things we can try is, uncheck the box “Add Python 3.7 to PATH” during the installation. Then, manually add the path to Environment Variables for Python and try to compile.
Let us know if there are any concerns.
Meanwhile, I will research on this issue and see if we can get more information about the cause.
Regards,
Prakhar Khare
Microsoft Community – Moderator