# Python and Conda environment update

**URL:** <https://www.rubin.community/t/python-and-conda-environment-update/3640>\
**Category:** DM Notifications\
**Tags:** astropy, dm-dev, python3\
**Created:** [March 28, 2019, 5:18pm UTC](https://www.rubin.community/t/python-and-conda-environment-update/3640 "2019-03-28T17:18:27Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [March 29, 2019, 11:15pm UTC](https://www.rubin.community/t/python-and-conda-environment-update/3640/10 "2019-03-29T23:15:36Z")

</div>

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):

```auto
# 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 ran `bin/deploy` about there being nothing to install and a suggestion to run `conda clean --help`. Doing the above commands appears to have worked: I now have an updated stack with the new baseline packages, but still have my pip packages installed (whether they all work is a separate question).

---

_[View the full topic](https://www.rubin.community/t/python-and-conda-environment-update/3640)._
