Search code examples
pythonanacondacondadependency-managementpipenv

Using pipenv with conda


I currently have an Anaconda distribution of Python 3.6.8 running on a windows 10 machine. My projects reside in conda virtual environments and each have their own requirements.txt to specify packages and versions. I wish to achieve better dependency resolution by utilizing pipfile and pipfile.loc which is made possible by pipenv. Is it possible to combine conda and pipenv to achieve this? And is this the best or recommended way to resolve package versioning dependencies?

But is it the best solution?


Solution

  • It's subjective. I have Anaconda, but only out of necessity. I find that it is unreliable at times. I use virtualenv for my projects and I have never had an issue with them. They are reliable and I haven't seen a need to jump ship for a fad.

    My advise is to experiment, but if you need something to work reliably, virtualenv is a strong contender. The old adage comes to mind, if it ain't broke, don't fix it.