362
you are viewing a single comment's thread
view the rest of the comments
[-] infeeeee@lemm.ee 14 points 1 year ago* (last edited 1 year ago)

My workflow:

cd project
python -m venv .venv
. ./.venv/bin/activate
pip install -e .

By default pyvenv excludes system packages, so I can have different versions in the venv. To reset the venv, I just have to delete the .venv dir.

[-] oscar@programming.dev 1 points 1 year ago

I've been using pipenv for a good while but I've started to move over to venv slowly, and I like it so far. It's a bit more of manual work but I feel like it's worth it.

[-] infeeeee@lemm.ee 2 points 1 year ago

I love this workflow because it has only two prerequisites: python and pip. It works on windows, linux, any vm or container. Pipenv requires some setup, while this should work everywhere. In powershell you have to use ./.venv/bin/acticate.ps1 but that's the only difference.

load more comments (4 replies)
load more comments (7 replies)
this post was submitted on 29 Jun 2023
362 points (98.1% liked)

Programmer Humor

19397 readers
374 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS