Skip to content

How to use pipenv (with pyenv)

Sven Eberth edited this page May 6, 2022 · 3 revisions

Installation

Install pipenv and pyenv like in these scripts

Set-Up a virtualenv from a Pipfile

$ pipenv install

Install dependency for development

$ pipenv install -e path_to_package

Hint: -e is the shothand of --editable.

Use the virtualenv shell:

$ pipenv shell

Run a command inside the virtualenv

like the local development sever with the viur-cli:

$ pipenv run viur run

(Excecute viur run with pipenv)

Create a new env and ignore parent

PIPENV_NO_INHERIT=True pipenv --python 3.9