Ubuntu22 install pip3
-
ubuntu@coolpi:~$ sudo apt install python3-pip Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: python3-distutils : Depends: python3:any (>= 3.10.5-0~) Depends: python3-lib2to3 (= 3.10.6-1~22.04) but 3.10.4-0ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages. ubuntu@coolpi:~$
maybe the system hold some packages. Please take a try use command:
apt-mask unhold python3* python3-* libpython3* apt install python3-pip
-
sudo apt-mark unhold python3* python3-* libpython3*
sudo apt-get install python3-pip