No, it’s unrelated to the installation.
Your target in batch34 is not in the range [0, nb_classes-1].
Just add a print statement in your training loop and print out the min and max values for the targets.