venv-pack for Packaging Python Virtual Environments

0.2.0 · active · verified Thu Apr 16

venv-pack (version 0.2.0) is a utility that packages Python virtual environments into a `.tar.gz` archive for easy redistribution. It aims to make deploying Python applications with their dependencies straightforward by creating a self-contained, relocatable environment. Releases are infrequent, with the last major update (0.2.0) released in August 2023.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to create a virtual environment, install a package into it, and then use `venv-pack` to compress it into a redistributable .tar.gz archive. The `venv-pack` command should ideally be run from outside the activated environment.

python3 -m venv my_app_env
source my_app_env/bin/activate
pip install requests
deactivate
venv-pack -o my_app_env.tar.gz my_app_env
ls -lh my_app_env.tar.gz

view raw JSON →