# Conda environment refresh

**URL:** <https://www.rubin.community/t/conda-environment-refresh/4040>\
**Category:** DM Notifications\
**Created:** [February 17, 2020, 6:30pm UTC](https://www.rubin.community/t/conda-environment-refresh/4040 "2020-02-17T18:30:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![timj](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/timj/32/10_2.png) [@timj](https://www.rubin.community/u/timj)\
**Post date:** [February 17, 2020, 6:30pm UTC](https://www.rubin.community/t/conda-environment-refresh/4040/1 "2020-02-17T18:30:58Z")

</div>

Today I updated the baseline for the science pipelines conda environment. This means that the next time you run `newinstall.sh` master or `lsstsw``deploy` you will get the updated environment. The full set of versions defined by the new environment can be found [here](https://github.com/lsst/scipipe_conda_env/blob/master/etc/conda3_packages-linux-64.yml) but the main changes are:

- Numpy 1.18.1
- Pandas 1.0.1
- Astropy 4.0

I have also added `boto3`/`moto` for S3 compatibility and also `pytest-subtests`. I have not updated `matplotlib` since 3.1 currently has a bug in it when `multiprocessing` is used on macOS.

Jenkins will migrate to the new environment shortly.

Now that we have made this change you will need to reinstall all your local stack builds since I don’t believe that they will be compatible with the previous builds (numpy changes usually cause problems). @swinbank will be creating a new shared stack.

Next week I will update the corresponding eups stub packages to force these minimum versions, at that point all builds will fail without updating.

---

<div class="post-metadata">

**Author:** ![rowen](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/rowen/32/52_2.png) [@rowen](https://www.rubin.community/u/rowen)\
**Post date:** [February 17, 2020, 10:12pm UTC](https://www.rubin.community/t/conda-environment-refresh/4040/2 "2020-02-17T22:12:27Z")

</div>

Sounds great! What version of Python does it provide?

---

<div class="post-metadata">

**Author:** ![timj](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/timj/32/10_2.png) [@timj](https://www.rubin.community/u/timj)\
**Post date:** [February 17, 2020, 10:54pm UTC](https://www.rubin.community/t/conda-environment-refresh/4040/3 "2020-02-17T22:54:58Z")

</div>

> [@rowen](#):
>
> Python does it provide

3.7.6 – we can’t go to 3.8 until Astropy do.

---

<div class="post-metadata">

**Author:** ![parejkoj](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/parejkoj/32/138_2.png) [@parejkoj](https://www.rubin.community/u/parejkoj)\
**Post date:** [February 18, 2020, 7:49pm UTC](https://www.rubin.community/t/conda-environment-refresh/4040/4 "2020-02-18T19:49:28Z")

</div>

For those using `lsstsw`, I believe the instructions I posted for last year’s Conda update should still work to update your environment in place (for example, if you want to maintain your pip packages or other conda environments):

> [@Python and Conda environment update](http://www.rubin.community/t/python-and-conda-environment-update/3640/10):
>
> For those who like me who want to try to upgrade in place, these are the steps I did, from within my lsstsw installation directory (after making a copy of it so I could roll back if necessary): # remove old files and their eups tables: they will be incompatible with the updated conda env rm -fr stack/Linux64/\* rm -fr stack/ups\_db/\* # update the bin/deploy script and conda env info git pull bin/deploy rebuild lsst\_distrib I found if I tried to do the conda update first, I got an error when I ra…
