It turns out that the version of libtinfo (installed as part of ncurses) doesn’t provide its version info as suggested in this related answer. I was able to resolve this by forcing ncurses to be installed from the conda-forge channel instead of the default. In my YAML config for my conda env I simply did this:
dependencies:
- conda-forge::ncurses
If installing from command line you can do
conda install -c conda-forge ncurses
If you don’t specify the channel then you would need to set the channel priority as described here so that it will give priority to conda-forge.
Using the version of ncurses from conda-forge instead of the default got rid of the message that was spamming my terminal, because the conda-forge one ships with version information as described here.