download the 2022 build tools for visual studios and the problem will sorted out. click https://visualstudio.microsoft.com/visual-cpp-build-tools/ to download the build tools. once tool is installed: click on the : "desktop development with c++" icon
and click the install button once installing is done. write the command in terminal: pip install nes-py