Re:Explicit bootstrapping of pip in Python installations
by paulgb on Tuesday October 22, 2013 @10:55AM
(#6592288)
I'm not a web developer, but I do data analysis with Python, and I use virtualenv heavily. For one thing, it increases reproducibility to have a record (pip freeze) of which versions of each package I used.
Re:Explicit bootstrapping of pip in Python installations
by Shish2k on Tuesday October 22, 2013 @10:20AM
(#6592052)
Having tried various ways of distributing desktop apps / non-web daemons, I've found virtualenvs useful there too (with the one fairly large caveat that installing wxWidgets in a virtualenv is a world of pain :( But then in those cases I use the OS-provided packages with the OS package manager, so I still never use virtualenv and pip independently)
Re:Explicit bootstrapping of pip in Python installations
by ma2rten on Tuesday October 22, 2013 @10:51AM
(#6592258)
Exactly! I am currently working on a machine learning task. Python is great for this, but most of the scripts that I am writing are run-once scripts. VirtualEnv would be overkill of this usecase.
Re:Explicit bootstrapping of pip in Python installations
by cjbprime on Tuesday October 22, 2013 @10:26AM
(#6592090)
> We're not all building web apps in python - virtualenv is not universally useful.
Huh, fair enough. I work on non-webapps too -- could you explain more about your use case?
Re:Explicit bootstrapping of pip in Python installations
by stdbrouw on Tuesday October 22, 2013 @11:01AM
(#6592332)
If you're doing data analysis, where most libraries are serious about backwards compatibility and you don't necessarily care whether your code still runs two years from now... virtualenvs are sometimes just not worth the bother. (Though I'd still recommend them.)
Re:Explicit bootstrapping of pip in Python installations
by TylerE on Tuesday October 22, 2013 @10:54AM
(#6592281)
Libraries that are very build-finicky (like various image processing libs) I've had bad luck with virtualenv, or env pip. Usually end up building by hand.
Re:Explicit bootstrapping of pip in Python installations
by X-Istence on Tuesday October 22, 2013 @11:43AM
(#6592636)
I build web apps, but almost anything else I do, including a full Python based backend for $WORK is all done in a virtualenv. Virtualenv's are not just for web apps.
Re:Explicit bootstrapping of pip in Python installations
by RodericDay on Tuesday October 22, 2013 @01:46PM
(#6593565)
fully agreed. the numpy, scipy, matplotlib, PyQt4 stack in particular is very indifferent to virtualenvs: you're going to need to install a whole ton of dependencies system-wide regardless.
i recommend it to everyone i work with, but it is significantly more useful when all your dependencies are pure python.
Re:Explicit bootstrapping of pip in Python installations
by jamesjporter on Tuesday October 22, 2013 @01:37PM
(#6593473)
I agree with paulgb and others -- most of my past work with python could be called scientific programming in one way or another and pip has been enormously useful.
(Edit: Not that I don't like virtualenv when it's appropriate, but it really bugs me the wrong way when people just throw out generalizations like that)