This problem may be caused by pip3 not being installed correctly or not configuring the path correctly. Here are a few solutions you can try:
- Confirm that pip3 is installed correctly. You can try to install pip3 using the following command:
sudo apt-get install python3-pip
- Confirm that pip3 has correctly configured the path. You can try using the following command to configure the path of pip3:
sudo ln -s /usr/bin/pip3 /usr/local/bin/pip
- If the above method still does not solve the problem, you can try to uninstall and reinstall pip3 using the following commands:
sudo apt-get remove python3-pip
sudo apt-get install python3-pip
Hope these methods can solve your problem.