Anaconda doesn't add pyproject-build.exe to PATH by default. To make sure both .tar.gz and .whl files are created, run py -m build after installing build with pip install build. Check if pyproject-build.exe is in your Scripts folder, and add it to PATH if needed.