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$
最新の60件
2023-09-20 2023-09-19 2023-09-18 2023-09-17 2023-09-16 2023-09-14 2023-09-12 2023-09-11 2023-09-08 2023-09-05 2023-09-02 2023-08-30 2023-08-29 2023-08-28 2023-08-27 2023-08-22 2023-08-20 2023-08-18 2023-08-17 2023-08-14 2023-08-12 2023-08-09 2023-08-07 2023-08-06 2023-08-03 2023-07-31 2023-07-29 2023-07-27 2023-07-25 2023-07-24 2023-07-22 2023-07-17 2023-07-16 2023-07-09 2023-07-08

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-07-30 (土) 00:39:43