%pip3 install --index-url=https://pypi.spotify.net/spotify/production confidence
results in this error:
UsageError: Line magic function `%pip3` not found.
How can I install a package with pip3 on google colab?
You have to use !
instead %
in order to run bash commands
!pip3 install --index-url=https://pypi.spotify.net/spotify/production confidence
However you can simply use pip
instead of pip3
Edit: as you see the url returns a ConnectTimeoutError because it is apparently broken. Maybe you want simply run
!pip install spotify confidence
?