|
|
Subscribe / Log in / New account

Python virtual environments

Python virtual environments

Posted Jun 13, 2018 21:30 UTC (Wed) by unsignedint (subscriber, #92715)
Parent article: Python virtual environments

I don't bother with virtualenv at all - just start a docker container based on the official python image. Boom - isolated environment


to post comments

Python virtual environments

Posted Jun 13, 2018 23:48 UTC (Wed) by jhoblitt (subscriber, #77733) [Link]

I too am a heavy docker user but having having to deal with bind mounts or constantly reinstalling from pypi sounds like a major PITA. Especially compared to the ruby world where you merely have to `cd` into the project.

Python virtual environments

Posted Jun 14, 2018 7:50 UTC (Thu) by karkhaz (subscriber, #99844) [Link] (1 responses)

I don't faff around with containers any more---each of my python installs install goes into its own AppVM on Qubes, physically separated from each other by cutting segments out of the hard disk platter so that it resembles a ceiling fan.

Even that hasn't entirely mitigated environmental problems, though, so I'm now considering buying a new machine for each python package. Py3 packages will each have an Arch Linux box, while Py2 (or "Python Heritage") programs can have a PDP-11 to run on, with power supplies separated by audiophile-grade isolation transformers, each located in a separate Biosafety Level 4 containment facility. Typing "pip install --user" through the gauntlets of my positive air-pressure spacesuit will be a tad cumbersome, but it sure beats expending the modicum of effort required to get something packaged by my distribution.

Python virtual environments

Posted Jun 22, 2018 8:11 UTC (Fri) by fredcadete (guest, #81023) [Link]

This approach sounds great!

If only you would give it a cool name, logo, and set up conferences with lots of handouts... then I could use it in production.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds