Unable to Install Anaconda on macOS

Hello! I am using macOS Monterey Version 12.5 on a MacBook Air (M2, 2022).

When running the .pkg installer, I get “The installation failed” message as found at this troubleshooting link: Troubleshooting — Anaconda documentation. However, I do not seem to have either of the issues suggested in this troubleshooting link (I do not see errors following a call to conda init --all in my /var/log/install.log file and the owner of my shell config files is indeed the current user). So, following the proposed troubleshooting steps at this link (then uninstalling with rm -rf anaconda3 and reinstalling) does not solve my issue.

Would much appreciate any suggestions/guidance to help me work through this! I recently got a new laptop and never had any issues with Anaconda on my prior computer.

For reference, I have been using the Anaconda3-2023.03-MacOSX-x86_64.pkg and I am performing the installation such that only the current user will be able to use the software. Looking through the logs, it seems that the issue might be occurring during the post-install. I get the following:

2023-04-18 13:37:10-04 My-Air package_script_service[66269]: ./postinstall: rosetta error: /var/db/oah/f5d5367cdfa04cbb61d9a9d6b198f39436a29d3dd74030fee37bb32f4becd98c/683057079937355d4bdd7bdc6c8fe37c7167837adb671120aee8a3df1af6cd3f/conda.exe.aot: attachment of code signature supplement failed: 1
2023-04-18 13:37:10-04 My-Air package_script_service[66269]: ./postinstall: /tmp/PKInstallSandbox.ksvWP8/Scripts/io.continuum.pkg.prepare_installation.GezCqM/postinstall: line 40: 68970 Trace/BPT trap: 5 “$CONDA_EXEC” constructor --prefix “$PREFIX” --extract-conda-pkgs
2023-04-18 13:37:10-04 My-Air package_script_service[66269]: ./postinstall: ERROR: could not extract the conda packages

I also see these error messages farther up the log:

2023-04-18 13:37:08-04 My-Air Installer[68944]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
2023-04-18 13:37:08-04 My-Air Installer[68944]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Users/myname/Downloads/Anaconda3-2023.03-MacOSX-x86_64.pkg#prepare_installation.pkg
2023-04-18 13:37:08-04 My-Air Installer[68944]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Users/myname/Downloads/Anaconda3-2023.03-MacOSX-x86_64.pkg#run_installation.pkg
2023-04-18 13:37:08-04 My-Air Installer[68944]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Users/myname/Downloads/Anaconda3-2023.03-MacOSX-x86_64.pkg#pathupdate.pkg

I have resolved this issue. I had been using the Anaconda3-2023.03-MacOSX-x86_64.pkg installer rather than the Anaconda3-2023.03-MacOSX-arm64.pkg installer. I overlooked the possibility that my computer had been downloading the wrong installer by default.