ポンコツエンジニアのごじゃっぺ開発日記。

いろいろポンコツだけど、気にするな。エンジニアの日々の開発などの記録を残していきます。 自動で収入を得られるサービスやシステムを作ることが目標!!

【解決済み】Anaconda(Conda)でPythonをインストールしようとした際にエラーになる問題。

M2 Macbook Pro(apple silicon)にて、conda createしようとした際にエラーになりました。

$ conda create -n "test" python==3.9
Channels:
 - defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - python==3.9

Current channels:

  - defaults

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

解決策

ChatGPTに聞いたら、Conda Forgeの追加のチャンネルを利用してインストールすると良いとのことです。

$ conda config --add channels conda-forge
$ conda config --show channels
channels:
  - conda-forge
  - defaults

そして、改めてconda createを実行したら無事エラーなく実行することができました!

お問い合わせプライバシーポリシー制作物