mac pro M1 (ARM) installation: python development environment

0 Preface

Both Miniforge and Anaconda are python distributions. To run python under the arm architecture, you need to install the Miniforge version

1. Install

1. Download the installation script
miniforge github address

insert image description here

2. Execute the script

bash Miniforge3-MacOSX-arm64.sh

Enter all the way here, if you need to choose the unified optionyes

insert image description here

3. Query the environment variables to find miniforge3the configuration that has been added

cat ~/.zshrc

insert image description here

4. Reload an environment variable

source ~/.zshrc

5. Query condaand pythonversion

conda -V
python -V

insert image description here

6. The installation is successful

7. PyCharmWhen using other development tools, you need to configure the python path, as shown in the figure below

The default path is:/Users/wuhanxue/miniforge3/bin/python3

insert image description here

8. Create a project and run it. If it runs successfully, it means the configuration is successful.

insert image description here

Guess you like

Origin blog.csdn.net/qq_24950043/article/details/128076602