Como resolver esses erros durante a instalação do python3-pip no ubuntu16.04?

1

Quando executo o commannd sudo apt install python3-pip no Ubuntu 16.04, recebo esses erros

Reading package lists... Done
Building dependency tree       
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-pip : Depends: python-pip-whl (= 8.1.1-2) but 8.1.1-2ubuntu0.4 is to be installed
               Recommends: python3-dev (>= 3.2) but it is not going to be installed
               Recommends: python3-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
    
por Darkhorse kafle 01.01.2017 / 04:29

2 respostas

3

Depois de ter um monte de pesquisa no google, finalmente consegui instalar o pip3 na minha máquina do Ubuntu 16.04 simplesmente executando estas linhas de código

1. sudo apt-get install python3-setuptools

2. sudo easy_install3 pip

    
por Darkhorse kafle 11.01.2017 / 07:04
0

Você quebrou os pacotes, portanto, siga estas etapas:

  1. Corrigir pacotes quebrados:

    sudo apt -f install
    
  2. Atualização:

    sudo apt update && sudo apt dist-upgrade
    
  3. Agora instale normalmente:

    sudo apt install python3-pip
    
  4. Verifique se ele está instalado:

    pip3 --version
    

Isso deve corrigir isso.

    
por George Udosen 01.01.2017 / 04:54