3 ms·
I believe virtualenv (with/without virtualenvwrapper) is most widely used. Not sure if there are any advantages/disadvantages compared to conda tho. https://vi
by Foxboron 12y ago
I believe virtualenv (with/without virtualenvwrapper) is most widely used. Not sure if there are any advantages/disadvantages compared to conda tho.
https://virtualenv.pypa.io/en/latest/ https://virtualenv.pypa.io/en/latest/
https://virtualenvwrapper.readthedocs.org/en/latest/ https://virtualenvwrapper.readthedocs.org/en/latest/
- a3n 12y agoOne disadvantage of conda/anaconda is that you can't, or are discouraged from using virtualenv with conda/anaconda. I use Anaconda on Win7, like it a lot, but I haven't figured out how to use, say, the python 2 that comes with anaconda alongside the python 2 that comes from python.org. I've looked around, haven't really understood what I should be looking at for that. But whatever it is, it isn't virtualenv if you use Anaconda.
- bkcooper 12y agoOne disadvantage of conda/anaconda is that you can't, or are discouraged from using virtualenv with conda/anaconda. True, but conda has its own virtual environments that work quite nicely. You can make a new one with conda create and switch between them with activate/deactivate. You even get the same sort of interaction with pip (for the packages you want that aren't in conda or binstar), and I've been able to use e.g. Emacs packages that expect to work with virtualenv and have (mostly) had success using conda's envs instead.
- a3n 12y agoYep, and your answer is the sort of answer I see all around, including on their forum. I haven't figured out the doc. How would you use conda's environments to switch between Andconda's python 2 and python.org's python 2?
- ngoldbaum 12y agoWhy would you want to do that? If you're using anaconda or miniconda, you should be using Continuum Analytics' builds of python, not python.org python.
- a3n 12y agoBecause I want to use Anaconda and its infrastructure, but skeptical people in my circle would want to see that whatever was built will run on the version of python that they would download (which would not be Anaconda). "Why would you want to ..." answers are generally pretty frustrating. It's a big universe with a very large possible set of individual circumstances. Can this be done?
- ngoldbaum 12y agoIf you're building conda packages then the only possible consumer is other users of miniconda or anaconda. I'm not sure "whatever was built" refers to in this case. Some kind of app? Of course you can use anaconda for normal library or application development, since there's functionally no difference between Continuum Analytics' python builds and the python.org python build.
- a3n 12y agoI want to run the following, using either of Anaconda or python.org python 2, on the same machine depending on the whim of the day: C:> python -c "print 'hello'" hello