I tried to run the script in a new notebook and got the same “error”.
Apparently it’s just a warning, as after a few seconds, PyTorch is successfully installed.
Could you try it again and wait a few more seconds?