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?

pip、condaでもろもろやるときのコマンド 備忘録

Posted at

すぐ忘れてしまうのでメモ代わりに残していきます。

1.pip

パッケージのインストール

pip install <package>

バージョンを指定したインストール

pip install <package>==<version>

パッケージのアップデート

pip install -U <package>

#pip自体のアップデートもこちら
pip install -U pip

インストール済みのパッケージを見る

pip list

最新版があるかどうかの確認

pip list -o

パッケージのアンインストール

pip uninstall <package>

2.conda

パッケージのインストール

conda install <package>

バージョンを指定したインストール

conda install <package>==<version>

パッケージのアンインストール

conda uninstall <package>

パッケージのアップデート

conda update <package>

# condaのアップデート
conda update conda

すべてのパッケージのアップデート

conda update --all

仮想環境の作成

conda create -n <env> python=<version>

仮想環境の有効化

conda activate <env>

仮想環境の無効化

conda deactivate <env>

インストール済みのパッケージの確認

conda list
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?