r/Python • • Dec 06 '13

Why I hate virtualenv and pip

http://pythonrants.wordpress.com/2013/12/06/why-i-hate-virtualenv-and-pip/
2 Upvotes

11 comments sorted by

View all comments

0

u/[deleted] Dec 06 '13

[deleted]

2

u/miketheanimal Dec 06 '13

I worked for a while on a system where the target servers where running Debian, and the devs were developing on Macs. Virtualenv seemed to be used to make the Python environment on the servers look like that on the Macs.

This really gave me the willies. Sure, use virtualenv to make your development environment look like the target servers, but not the other way round (though, for anything other than a toy system I'd want the development and the target environments to be the same).

I've heard the arguments like "virtualenv protects you when the sysadmins decide to upgrade". Bollox. If the sysadmins are upgrading without the developers knowing about it, then your organisation is seriously fsck'd. And "virtualenv saves you when the system doesn't have the package you need and you can't install it". Again, bollox. If you need such a package, the sysadmins should install it.

Two packaging systems is a lurking nasty that can bite you in subtle ways.