Cannot install package because pip is not installed

I am running Ubuntu and have both python 2.7 and python 3.5 on my system

I changed the settings so that when I do

python test.py

python3 launches

I wanted to install the pyperclip module in python3 ..

pip install pyperclip

installed it for python 2

A quick google search suggested using

pip3 install pyperclip

but i get

pip3 is currently not installed . You can install it by typing
sudo apt install python3-pip

When I run this command, I get the following:

The following packages have unmet dependencies:
python3-pip : Depends: python-pip-whl (= 8.1.1-2) but 8.1.1-   2ubuntu0.2 is to be installed
           Recommends: python3-dev (>= 3.2) but it is not going to be installed
           Recommends: python3-setuptools 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.

What should I do?

+4
source share
2 answers

, . Python 3.5, , python -m pip, Python 3.5 pip. -, pip, , python -m pip install pyperclip.

+2

aptitude, . apt:

sudo apt-get install aptitude

pip3 :

sudo aptitude install python3-pip

, aptitude. aptitude 8.1.1-2ubuntu0.2 8.1.1-2. . , .

0

Source: https://habr.com/ru/post/1657717/


All Articles