4
3

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 5 years have passed since last update.

condaでよく使うコマンド

Last updated at Posted at 2019-04-10

仮想環境の作成

conda create -n <envName> <modules...>

# 例 py37 という名前でPython 3.7 + PyTorch 1.0 (cpu)の環境を作る
conda create -n py37 python=3.7 pytorch torchvision -c pytorch

仮想環境の複製

conda create -n <newEnvName> --clone <oldEnvName>

仮想環境の一覧を表示

conda info -e

仮想環境に入る

conda activate <envName>

モジュールをインストール

conda install <modules...>

# スペース区切りで複数同時に指定可、-y を付けるとyes/noを聞かれない
# 例 minicondaの場合に、jupyter notebookを使えるようにする
conda install jupyter -y

モジュールの一覧を表示

conda list

モジュールをすべてアップデートする

conda update --all
4
3
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
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?