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..." |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
== Install == | == Install == | ||
<pre> | <pre> | ||
apt install python-is-python3 python3-pip python3-pkgconfig pipenv | |||
</pre> | </pre> | ||
== Create Project == | == Create Project == | ||
Line 20: | Line 18: | ||
</pre> | </pre> | ||
Update | == Update Python Packages == | ||
<pre> | <pre> | ||
pipenv update | pipenv update | ||
</pre> | </pre> |
Latest revision as of 20:18, 6 November 2024
Install
apt install python-is-python3 python3-pip python3-pkgconfig 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