I’m guessing jupyter is running in a different python environment than your default one.
The first thing to try would be to see what happens if you replace ‘python’ with ‘python3’ at the start of that command.