When executing pip3 --version in the command window, "ModuleNotFoundError: No module named 'pip'" is reported.

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:

  1. Confirm that pip3 is installed correctly. You can try to install pip3 using the following command:
sudo apt-get install python3-pip

  1. 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

  1. 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.

Guess you like

Origin blog.csdn.net/u012632105/article/details/132791075