Not able to install package because pip is not installed
<p>I am running Ubuntu and have both python 2.7 and python 3.5 on my system</p>

<p>I have tweaked the settings so that when I do</p>

<pre><code>python test.py
</code></pre>

<p>python3 runs</p>

<p>I wanted to install the module pyperclip in python3..</p>

<pre><code>pip install pyperclip
</code></pre>

<p>installed it for python 2</p>

<p>Quick google search suggested to use </p>

<pre><code>pip3 install pyperclip
</code></pre>

<p>but I get</p>

<pre><code>pip3 is currently not installed . You can install it by typing
sudo apt install python3-pip
</code></pre>

<p>When I run this command I get the following:</p>

<pre><code>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 (&gt;= 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.
</code></pre>

<p>What should I do?</p>

<p>It seems like it could be an error in your path. If you installed Python 3.5 it should come with pip, so try doing <code>python -m pip</code> and this should run Python 3.5's pip. To install something, simply use the normal pip commands as you have, for example <code>python -m pip install pyperclip</code>.</p>

python python-3.x pip