If you don't have pip3 (for example if using raspbian-lite), you'll first need to install it: sudo apt-get update sudo apt install python3-pip