1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MacにMinicondaでPython環境を作ってみる

1
Last updated at Posted at 2026-05-04

ここでは、普段使いApple Silicon Macに、Minicondaを用いて、Python環境を構築してみます。目的としては、PyTorchを用いて、MGN:Mech Graph Netowrkを試すことです。

ターミナルの起動

MacOS付属の「ターミナル」を、「アプリケーション>ユーティリティ」から起動します。
MinicondaによるPythonの利用は、このターミナルから、コマンドラインで行います。

Minicondaのインストーラーの入手

  • 以下のダウンロードサイトに接続します。 「 https://www.anaconda.com/download/success
  • OSはMacで、右側のMinicondaで、Command Lineの、「CLI install instructions」をクリックします。
  • 項目1の.shタイプのインストーラーを入手するコマンドを、コピーして、ターミナルにペーストして、実行します。
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
  • ダウンロードがcurlで実行され、インストーラー「Miniconda3-latest-MacOSX-arm64.sh」が保存されます。

Minicondaのインストーラーの実行

  • bashを用いて、以下のインストーラーを実行します。
bash ~/Miniconda3-latest-MacOSX-arm64.sh

インストーラー「Welcome to Miniconda3 py313_26.3.2-2」が起動するので、以下の設定で進めます。

  • Please, press ENTER to continue >>> [Enter]
  • MINICONDA END USER LICENSE AGREEMENT が表示される、G入力で最後に移動
  • Do you accept the license terms? [yes|no] >>> yes[Enter]
  • Miniconda3 will now be installed into this location:
      [/Users/ryos/miniconda3] >>> [Enter]
     (インストールが進みます)
  • Proceed with initialization? [yes|no] >>> yes[Enter]
  • 「Thank you for installing Miniconda3!」と表示され終了するので、ターミナルを再起動します。
  • プロンプトの先頭に、(base)がついて、Pythonのbase仮想環境が起動して、この中で作業が可能です。
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?