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?

GUIでぽちぽち追加するけど覚えてないと困るコマンド

Posted at

このファイルだけは必要

PyCharmを使用して、GUIでぽちぽちパッケージを追加するのですが、何を追加したかな???
わからないことがありました😱

昔会社員の頃にあった体験で気づいたのですが、知ってるようで忘れて毎回調べるコマンドを記事にしておきます。

思い出すためのメモです :pencil:

本番環境にデプロイしたDockerfileに設定書くのですが、requirements.txtを自動生成するコマンドあるとありがたいなーといつも思う。

使用したコマンド

HTTP通信するパッケージの追加をするときにパッケージの追加するコマンドを実行

# pip install [package name]
pip install requests
# pip uninstall [package name]
pip uninstall requests

インストールしているパッケージをテキストファイルに追加するコマンド

pip freeze > requirements.txt

こんな感じになります。
スクリーンショット 2025-04-07 8.27.48.png

requirements.txtのパッケージを全てインストールするコマンド

pip install -r requirements.txt

requirements.txtのパッケージを全てアンインストールするコマンド

pip uninstall -r requirements.txt

最後に

Render.comやCloud Runにデプロイするときに必要な場面があったので、メモ程度ですが自分にとっては重要なコマンドなので記事にしました。

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?