When we try to install python3-pip on Kali Linux 2021, the error “E: Invalid operation python3-pip” appears. To solve this, we will run the following commands.
E: Invalid operation python3-pip
![Invalid operation python3-pip](https://www.systemconf.com/wp-content/uploads/2021/11/img_618ac756b937d.png)
Resolving “E: Invalid operation python3-pip” Errors
To solve the “E: Invalid operation python3-pip” error, run the following commands in order.
echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" | sudo tee /etc/apt/sources.list sudo apt-get install software-properties-common sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update sudo apt-get install python3-pip
![apt-get install software-properties-common](https://www.systemconf.com/wp-content/uploads/2021/11/img_618acc71495f3.png)
![add-apt-repository ppa:deadsnakes/ppa](https://www.systemconf.com/wp-content/uploads/2021/11/img_618acc80d5fae.png)
![install python3-pip](https://www.systemconf.com/wp-content/uploads/2021/11/img_618acc9d0156a.png)