I'm running Anaconda with an environment phd, and I'm trying to update astropy to the current version (5.0.4, same as in my base environment).
>>> conda activate phd
>>> python
Python 3.7.1 (default, Oct 28 2018, 08:39:03) [MSC v.1912 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import astropy
>>> print(astropy.__version__)
4.3.1
In the base environment, I get
>>> python
Python 3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)] :: Anaconda,
Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import astropy
>>> print(astropy.__version__)
5.0.4
>>>
I've tried conda upgrade astropy from within phd, and conda update --name phd astropy, both of which return
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
Retrieving notices: ...working... done
What am I doing wrong?