pipenvのドキュメントから毎回見つけるのが結構手間なのでメモ.
# プロジェクト直下にvenvを作る
export PIPENV_VENV_IN_PROJECT=1
# 環境を作成
pipenv install --python 3.6
# Pipfileから環境構築
pipenv install
# Pipfile.lockから環境構築
pipenv sync
# requirements.txtからパッケージをインストール
$ pipenv install -r path/to/requirements.txt
# Pipfile.lock を作成
$ pipenv lock
# requirements.txtを作る
$ pipenv lock -r
# requirements.txt devを作る
$ pipenv lock -r --dev
ドキュメント
- Pipenv: 人間のためのPython開発ワークフロー — pipenv 2018.11.27.dev0 ドキュメント
- Pipenvの基本的な使い方 — pipenv 2018.11.27.dev0 ドキュメント