下载
Miniconda — Conda documentation
选择
Miniconda3 macOS Apple M1 64-bit bash (Py38 conda 4.10.1 2021-11-08)
安装
chmod 777Miniconda3-latest-MacOSX-arm64.sh
bash Miniconda3-latest-MacOSX-arm64.sh
一直按回车
提示输入yes/no则输入yes
Miniconda3 will now be installed into this location:
~/miniconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
~miniconda3] >>>
PREFIX=/Users/xx/miniconda3
modified /Users/xx/.zshrc
==> For changes to take effect, close and re-open your current shell. <==
If you'd prefer that conda's base environment not be activated on startup,
set the auto_activate_base parameter to false:
conda config --set auto_activate_base false
重启shell即可使用
安装notebook
conda install jupyter notebook
使用notebook
jupyter notebook
(base) xx@xxmini@ ~ % jupyter notebook
[I 18:56:09.377 NotebookApp] Writing notebook server cookie secret to /Users/xx/Library/Jupyter/runtime/notebook_cookie_secret
[I 18:56:09.847 NotebookApp] Serving notebooks from local directory: /Users/xx
[I 18:56:09.847 NotebookApp] Jupyter Notebook 6.4.6 is running at:
[I 18:56:09.847 NotebookApp] http://localhost:8888/?token=d6784c16d53e4ea59f1c5331a360f99768d37a364813
[I 18:56:09.847 NotebookApp] or http://127.0.0.1:8888/?token=d6784c16d53e4ea59f1c5331a360f99768d37a364813
[I 18:56:09.847 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 18:56:09.856 NotebookApp]
To access the notebook, open this file in a browser:
file:///Users/xx/Library/Jupyter/runtime/nbserver-7405-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=d6784c16d53e4ea1c5336b531a360f99768d37a364813
or http://127.0.0.1:8888/?token=d6784c16d53e41c5336b531a360f99768d37a364813