4 ms·
Compare the before vs after Before (analogous to go mod init): python -m venv venv source venv/bin/activate python -m pip install -U pip pip i
by CraigJPerry 1y ago
Compare the before vs after
Before (analogous to go mod init):
python -m venv venv
source venv/bin/activate
python -m pip install -U pip
pip install httpx
pip freeze > requirements.txt
nvim foo.py
# find a way to share foo.py and requirements.txt
On another machine (still the before scenario, this time analogous to maybe go run):
python -m venv venv
source venv/bin/activate
python -m pip install -U pip
pip install -r requirements.txt
python foo.py
In the after scenario:
uv run foo.py
That's it. Comparable to
./my-go-binary