0
0

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 1 year has passed since last update.

Anacondaでよく使うコマンド

Last updated at Posted at 2023-08-30

初心者でもよく使うAnacondaのコマンド一覧。環境はMacのzshです。

仮想環境の起動/終了

  • conda info -e: 仮想環境一覧の表示
  • conda create -n name python=x: Pythonのバージョンがxの仮想環境nameを作成
  • conda activate name: 仮想環境nameの起動
  • conda deactivate: 現在の仮想環境を終了

ライブラリ関係

  • conda list: 現在アクティブにしている仮想環境に入っているライブラリを確認
  • conda install name==x: nameというライブラリのインストール、= 以降は省略可
  • conda search --full-name name: nameというライブラリがAnacondaのチャンネルにあるか確認
  • conda config --add channels name: nameというチャンネルをAnacondaのチャンネルに追加

jupyter notebookの起動/終了

  • jupyter notebook: jupyter notebook の起動
  • [Ctrl] + C: jupyter notebook の終了

参考文献
@naz_. "Anaconda でよく使うコマンド一覧". Qiita. 2018/10/18. https://qiita.com/naz_/items/84634fbd134fbcd25296, (2023/08/30).

@yakisobamilk. "Anaconda仮想環境について". Qiita. 2019/04/12. https://qiita.com/yakisobamilk/items/867dce8e53824146ce05, (2023/08/30).

CG. "jupyter notebookの基本的な使い方。起動と終了". CodeGraffiti. 2018/08/19. https://code-graffiti.com/how-to-use-jupyter-notebook/#toc6, (2023/08/30).

のっくん. "【Anaconda】conda-forgeチャネルを追加する方法". NokkunBlog. 2019/03/23. https://ymgsapo.com/2019/03/23/anaconda-package-search/, (2023/08/30).

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?