Since the commonly used Anaconda and Miniconda do not provide conda environments for M1 processor support right now (as of 2021/2/4), it would be nice to have a supported version, although it doesn't affect normal use either. Here is the miniforge provided by conda-forge, which currently has a version of the software that supports Apple Silicon. The following demonstrates how to install and use it.
Download Software
First, download miniforge3 at:/conda-forge/miniforge/#download
Select the Apple Silicon version on the page
Move the downloaded script to the user directory and give it execute permissions and install it.
installation process
mv ~/ Chmod +x ./
If, during installation, the
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Then you need to install the Xcode toolkit as follows:
xcode-select --install
Once the installation is complete, just reinstall Miniforge3 again.
After completing the installation, reactivate the configuration file
# zsh for example, and other bash as appropriate. Source .zshrc
When you're done, you can test to see if the conda installation is complete
If you can see the normal version number output, the installation is successful.
to this article on macOS M1 (Apple Silicon) installation and configuration Conda environment specific implementation of the article is introduced to this, more related to the M1 installation and configuration of Conda content, please search for my previous articles or continue to browse the following articles hope that you will support me in the future!