Packaging your code is for distributing libraries or tools to other developers.
Freezing the code is creating a single-file executable file to distribute to end-users, that contains all of your application code as well as the Python interpreter.
Distributing your Python App/Libs
Distributing your Python App/Libs
the pip way: requirements.txt
Requirements files are files containing a list of items to be installed using pip install
Tools:
pip-tools - A set of tools to keep your pinned Python dependencies fresh.
the pipenv way: Pipfile && Pipfile.lock
Managing a requirements.txt file can be problematic, so Pipenv uses Pipfile and Pipfile.lock to separate abstract dependency declarations from the last tested combination