Mac mini (Late 2012) [intel Core i5, 2.5GHz, 2core, 16GB mem, macOS Catalina]で python アプリを動かすことになった.
まずは最新のAnacondaを取得してインストール
取得先https://www.anaconda.com/products/distribution#Downloads
M1(Apple Silicon)チップ搭載 mac 向けのインストーラーも用意されている
mini:~ supervisor$ curl -O https://repo.anaconda.com/archive/Anaconda3-2022.05-MacOSX-x86_64.sh
mini:~ supervisor$ ls -lh Anaconda3-2022.05-MacOSX-x86_64.sh
-rw-r--r-- 1 supervisor staff 584M Jul 24 09:25 Anaconda3-2022.05-MacOSX-x86_64.sh
mini:~ supervisor$ bash ./Anaconda3-2022.05-MacOSX-x86_64.sh -h
usage: ./Anaconda3-2022.05-MacOSX-x86_64.sh [options]
Installs Anaconda3 2022.05
-b run install in batch mode (without manual intervention),
it is expected the license terms are agreed upon
-f no error if install prefix already exists
-h print this help message and exit
-p PREFIX install prefix, defaults to /Users/supervisor/anaconda3, must not contain spaces.
-s skip running pre/post-link/install scripts
-u update an existing installation
-t run package tests after installation (may install conda-build)
mini:~ supervisor$
インストール場所にこだわりがなければ、$HOME/anaconda3 になるみたい
mini:~ supervisor$ bash ./Anaconda3-2022.05-MacOSX-x86_64.sh -b
:
:
done
installation finished.
mini:~ supervisor$ du -hs ./anaconda3/
4.8G ./anaconda3/
mini:~ supervisor$
4.8GBが消費されます
mini:~ supervisor$ export PATH=/Users/supervisor/anaconda3/bin:$PATH
mini:~ supervisor$ conda init
mini:~ supervisor$ exit
再度ログインするとコマンドプロンプトに(base)と今いるpython実行環境を表示してくれます
(base) mini:~ supervisor$