pipenv - Gestionnaire de dépendances et d'environnement virtuel
Pipenv est la manière recommandée par la doc de gérer les dépendances d'un projet. Avec Pipenv, plus de
pip
ou de virtualenv
, voire même pew
, tout est automatique !Suite à quelques problèmes, notamment la résolution de dépendances qui prend des plombes et qui n'aboutit pas parfois (trop souvent même), j'utilise plutôt poetry (post-it suivant) qui prend aussi en charge le packaging.
Néanmoins, cet outil n'est pas totalement à jeter à la poubelle ! Il faut suivre son évolution.
Avec
pip
:$ pip install pipenv
$ pipenv
Usage: pipenv [OPTIONS] COMMAND [ARGS]...
Options:
--where Output project home information.
--venv Output virtualenv information.
--py Output Python interpreter information.
--envs Output Environment Variable options.
--rm Remove the virtualenv.
--bare Minimal output.
--completion Output completion (to be eval'd).
--man Display manpage.
--support Output diagnostic information for use in GitHub issues.
--site-packages Enable site-packages for the virtualenv. [env var:
PIPENV_SITE_PACKAGES]
--python TEXT Specify which version of Python virtualenv should use.
--three / --two Use Python 3/2 when creating virtualenv.
--clear Clears caches (pipenv, pip, and pip-tools). [env var:
PIPENV_CLEAR]
-v, --verbose Verbose mode.
--pypi-mirror TEXT Specify a PyPI mirror.
--version Show the version and exit.
-h, --help Show this message and exit.