Pipenv: Difference between revisions
Jump to navigation
Jump to search
Created page with " == Install == <pre> pip3 install --user pipenv </pre> That installs pipenv in <code>~/.local/bin/</code> I linked that into my <code>~/bin/</code> directory and am now able t..." |
(No difference)
|
Revision as of 20:59, 26 April 2019
Install
pip3 install --user pipenv
That installs pipenv in ~/.local/bin/
I linked that into my ~/bin/
directory and am now able to run pipenv
Create Project
mkdir -p new_project/app; cd new_project/app pipenv install Flask # creates Pipfile, Pipfile.lock ...add some flask code... pipenv run python app/main.py # to start testing the app
To run in Docker, add this to the Dockerfile:
pipenv install --deploy --system
Update python packages
pipenv update