Version check fails following Python upgrade

After a Debian Bookworm python upgrade:

/usr/local/bin/jc --version
Traceback (most recent call last):
  File "/usr/local/bin/jc", line 5, in <module>
    from jc.cli import main
ModuleNotFoundError: No module named 'jc'

Also type -p jc should be used rather than which jc.