2
4

More than 3 years have passed since last update.

個人メモ] pipenvで環境構築 2020年

Posted at

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 ドキュメント

2
4
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
2
4