0

pip install xyz calls Python2.7 pip.

So, I try: python2.6 -m pip install xyz

and get: /usr/bin/python2.6: No module named pip

How do I install pip for my Python 2.6 so I can use the above command?

It's not installed, I tried pip2.6, and all the other recommended names on here.

User
  • 23,729
  • 38
  • 124
  • 207
  • A better question might be why you're stuck using an 11 year old interpreter. Upgrade! – Adam Smith Sep 14 '19 at 17:23
  • Try building a virtual environment specifying python2.6 as the python interpreter, I like virtualenv, activate the environment and use pip from there – R. Arctor Sep 14 '19 at 17:23
  • 2
    Notably Pip does not support Python 2.6 anymore, so any version you get will be an old one that may not support all features. See the [PyPA page](https://pip.pypa.io/en/latest/installing/) for details – Adam Smith Sep 14 '19 at 17:25
  • 1
    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py -- I believe this will still work for 2.6, but 2.6 is a REALLY bad idea :) – Paul Becotte Sep 14 '19 at 17:32

0 Answers0