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?

More than 3 years have passed since last update.

minicondaの使い方メモ

Last updated at Posted at 2021-02-14

インストール

# Linux
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x ./Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh

# macOS
brew install miniconda

.zshrcに以下を足す。多分 /home/k0kubun/miniconda3/bin/conda zsh hook でもできる。

eval "$(/home/k0kubun/miniconda3/bin/conda shell.zsh hook)"

environment.yml

name: envname
dependencies:
  - python=3.6.5
  - matplotlib
  - nose
  - numpy
  - pandas
  - scikit-learn
  - scipy
  - python-dateutil
  - pip
  - pip:
    - datetime

みたいになってるのを、

conda env create -f environment.yml

として読み込む。

activate

conda activate envname

とすると使っているシェル内で環境が有効になる。

deactivate

conda deactivate envname

というのもできるらしい。

remove

conda env remove -n envname
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?