pipenv 集成了 pip,virtualenv 两者的功能,且完善了两者的一些缺陷。

pipenv 是 Pipfile 主要倡导者、requests 作者 Kenneth Reitz 写的一个命令行工具,主要包含了 Pipfile、pip、click、requests 和 virtualenv,能够有效管理 Python 多个环境,各种第三方包及模块。
[2020-09-14 11:19:49.761] ❯ brew install pipenv
Updating Homebrew...
Warning: pipenv 2020.8.13 is already installed and up-to-date
To reinstall 2020.8.13, run `brew reinstall pipenv
A thoroughly biased feature table
| Name | Pip + venv | Pipenv | Poetry | pyenv | pythonloc | Conda | this |
|---|---|---|---|---|---|---|---|
| Managesdependencies | Y | Y | Y | Y | Y | ||
| Resolves/locks deps | Y | Y | Y | Y | |||
| Manages Python installations | Y | Y | Y | ||||
| Py-environment-agnostic | Y | Y | Y | ||||
| Included with Python | Y | ||||||
| Stores deps with project | Y | Y | Y | ||||
| Requires changing session state | Y | Y | |||||
| Clean build/publish flow | Y | Y | |||||
| Supports old Python versions | withvirtualenv | Y | Y | Y | Y | Y | |
| Isolated envs for scripts | Y | ||||||
| Runs project fns from CLI | Y | Y | Y |

