LoginSignup
3
1

requirements.txtのpipコマンド一覧

Last updated at Posted at 2023-11-01

venvにパッケージを取り込む際に、いくつかのpipコマンドを利用したのでまとめます。

requirements.txtからパッケージを一括インストール

pip install -r requirements.txt

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

pip list


一旦、キャッシュを削除したり、アンインストールしたい場合は、以下のコマンドを使用します。

キャッシュ削除

pip cache purge

アンインストールするパッケージ一覧のファイル作成

pip freeze > uninstall.txt

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

pip uninstall -y -r uninstall.txt
3
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
3
1