Hacker News new | ask | show | jobs
by hello0904 638 days ago
Option 1: python3 -m venv venv > source project/venv/bin/activate

Option 2: use Poetry

How is this different than a Dockerfile that is creating the venv? Just add it to beginning, just like you would on localhost. But that is why I love to code Python in PyCharm, they manage the venv in each project on init.

1 comments

My comment about pip is orthogonal to Docker. This is the same with or without Docker - I added a comment on this thread with more detail.