LoginSignup
0
0

More than 1 year has passed since last update.

pipenvからrequirements.txtを生成する

Posted at

経緯

ローカルの環境で開発していたプロジェクトをcloud Functionsで使用したくなったため、requirements.txtが必要になりました。
そこでpipenvの環境からrequirements.txtを生成する方法を調査しました。
※プロジェクトにPipfileが存在することが前提です。

出力手順

以下のコマンドを実行する。

pipenv lock -r > requirements.txt

開発用の依存関係だけのrequirements.txtを生成したい場合は以下のコマンドを実行する。

pipenv lock -r --dev > requirements.txt
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