|
|
|
|
|
by CraigJPerry
348 days 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
|
|