0

I'm trying to install a package for python 2 using pip, however it defaults to installing for python 3. The script I need to run only works in python 2.7, which i do have installed alongside python 3. The pip-2.7 command does not exist, nor pip2. Is there a way besides that to directly install the package? (hexdump, btw if that helps).

1
  • Is python2 on your path? Usually it's just python. So you cold run python -m pip install xxxx. Commented Dec 8, 2020 at 4:35

1 Answer 1

1

Did you checked if Python2 is installed ?

Did you tried pip2 command ?

What's the result if you do which pip ?

if pip2 or pip2.7 don't work, you can try /usr/bin/pip2 or /usr/bin/pip2.7

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.