top | item 41529642

(no title)

hello0904 | 1 year 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.

discuss

order

ghomem|1 year ago

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.