![get conda python version get conda python version](https://i.stack.imgur.com/6G6Us.png)
Given how bad our environment.yml is at reproducible installs, we can constrain what it installs a little. On the flip side, from the perspective of the packaging infrastructure upgrades are trivial to achieve: they happen automatically every time you recreate your environment. Similarly, there might be a new version of Python, which can also cause problems.
#GET CONDA PYTHON VERSION INSTALL#
If you have to recreate the environment, it will install the latest version of Pandas: you might get different results, or maybe your code won’t run at all. Some APIs might behave differently on purpose, if the old behavior was a bug.Unfortunately, there’s been a new release of Pandas in the interim-and with a new release, there are differences: Now, time passes, and you want to rerun the same analysis, with just a minor change to the code.
![get conda python version get conda python version](https://i.stack.imgur.com/3KSg3.png)
You install Python and Pandas with conda env create, write some code, it runs correctly, all is well with the world. Name : example channels : - conda-forge dependencies : - python - pandas You create an environment.yml for your dependencies: Let’s say your application depends on Python and Pandas. Let’s see how different ways of specifying dependencies can achieve these goals.
#GET CONDA PYTHON VERSION HOW TO#
![get conda python version get conda python version](https://1.bp.blogspot.com/-52Gj6LGu0aE/XoHZR0ooi5I/AAAAAAAAAZw/QlHw6XDyejIcrmxNpD4LLCmhU3ZKyiqYACLcBGAsYHQ/s1600/Picture2.png)
Why in practice you want to have two different dependency files.Three ways of specifying your dependencies, and how they impede and/or enable reproducibility and upgrades.Ideally you’d be able to both have a consistent, reproducible build, and still be able to quickly change your dependencies.Īnd you can do this-with a little understanding, and a bit more work. On the other hand, once you’ve pinned everything, upgrades become difficult: you’ll start encountering the infamous The following specifications were found to be incompatible with each other error. On the one hand, you want to pin all your dependencies to specific versions, so you get reproducible builds. If your application uses Conda to manage dependencies, you face a dilemma.