0

I am completely new to Ubuntu, am using version 16.04. I installed Python 2.7.13 using this link: How do I install the latest Python 2.7.X or 3.X on Ubuntu?

and then used this link to install PIP: https://www.rosehosting.com/blog/how-to-install-pip-on-ubuntu-16-04/

sudo apt-get install python-pip

but was given the following message:

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 resolve the situation:

The following packages have unmet dependencies:
python-pip : Depends: python:any (< 2.8)
          Depends: python:any (>= 2.7.5-5~)
          Recommends: python-all-dev (>= 2.6) but it is not going to be installed
          Recommends: python-setuptools but it is not going to be installed
          Recommends: python-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I double checked which Python version I have:

python -V

and I have python 2.7.13, so I don't understand how the dependencies aren't met.

Was Python already installed when I installed Ubuntu and somehow installing it again screwed me up?

  • 1
    Was Python already installed when I installed Ubuntu and somehow installing it again screwed me up? YES!!! –  Jul 22 '17 at 03:38
  • Oops! Is it an easy remedy to uninstall the one I installed? – Nick Nagy Jul 22 '17 at 03:46
  • Sorry, I don't have the foggiest idea. –  Jul 22 '17 at 03:48
  • 1
    When you run sudo apt update before sudo apt install python-pip, is anything different? Which way did you install 2.7.13? Please [edit] with the commands you ran. (The history command may help.) Do you need 2.7.13, or is 2.7.12 (which is in Ubuntu 16.04's official repositories) sufficient? The differences are small; if you need 2.7.13, you know. What's the output of (1) type -a python{,2,3}, (2) namei $(command -v python{,2,3}), and (3) apt list python 'python[23].[0-9]' 'python*minimal'? Please put it all in your [edit]--thanks! – Eliah Kagan Jul 22 '17 at 05:24

0 Answers0