0
0

More than 3 years have passed since last update.

MDAnalysisがインストールできないときの対処

Posted at

概要

MDAnalysisのcondaを使ったインストールで失敗したので、対処法を書いておきます。

状況

MDAnalysisのインストールをチュートリアル通りに進めていたが、

conda install --yes -n mdaenv MDAnalysis MDAnalysisTests

のところで、以下のエラーが出た。

Solving environment: failed

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

  - mdanalysis
  - mdanalysistests

Current channels:

  - https://repo.anaconda.com/pkgs/main/linux-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/free/linux-64
  - https://repo.anaconda.com/pkgs/free/noarch
  - https://repo.anaconda.com/pkgs/r/linux-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/pro/linux-64
  - https://repo.anaconda.com/pkgs/pro/noarch

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.

対処法

リポジトリのチャンネルを指定する。-c conda-forge

conda install -c conda-forge --yes -n mdaenv MDAnalysis MDAn
alysisTests

これで、mdaenvにcondaをつかってMDAnalysisをインストールできた。

原因

インストールの最初にあるこのコマンドがうまく行っていなかったと考えられる。

conda config --add channels conda-forge
0
0
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
0
0