I’m hoping you can add another cell after step #1 from above and then run the following code before you do the imports:
%conda install -c conda-forge git-annex
Be sure to restart the kernel after running that. This may work because it is found at conda.
I am unable to test this though myself because you don’t provide enough code that could be used to test this in an independent environment.