4 ms·
Conda virtual environments and Pip are orthogonal. Pip can be used to install into venvs. But as to why use conda rather than just the standard library venv mod
by jhrmnn 7y ago
Conda virtual environments and Pip are orthogonal. Pip can be used to install into venvs. But as to why use conda rather than just the standard library venv module (python3 -m venv venv): conda can easily manage multiple python versions. In my experience, it's the most hassle-free option compared to something like pyenv. I personally use conda just for managing venvs, and don't use its package manager functionality at all.
- dfsegoat 7y agoFWIW our use case is the same: - Conda to manage multiple python versions on 1 box: $ conda create -n env27 python=2.7 $ conda create -n env37 python=3.7 - Pip to manage packages in the environment: $ source activate env27 $ pip install -r requirements_27.txt
- qwerty456127 7y agoBut why would anybody need a Python version other than the latest? Aren't they backward-compatible within a major version? Won't everything written for Python 3.7 work on 3.8 and everything written for 2.6 work on 2.7?