Installing A Conda Environment
When developing STUMPY, I frequently and purposely delete my entire Python (conda) environment and start from scratch. This serves two purposes:
- It ensures that I continue developing and testing using the latest dependencies
- It helps to ensure that no new local dependencies have crept into STUMPY
However, every time I wipe out my environment (i.e., rm -rf /path/to/miniconda3/
), I have to try and remember what I need to re-install. Instead, it’s far more efficient to document all of this in an environment.yml
file:
And then, after reinstalling miniconda
, I just need to execute the following commands in the same directory as the environment.yml
file
Note that this installs the desired packages in the base conda environment. To install this in a named environment, you’ll need: