2

Now

pip -V

shows that it's python3.5's pip.

What to do if I want python2's package?

2
  • 2
    pip2 install <pkg-name> Commented Feb 29, 2016 at 11:30
  • 1
    python2.7 -m pip install <package> Commented Apr 19, 2022 at 6:41

1 Answer 1

4

You can use $pip2 install [package name] as it says in the comments but down the road your life will be much easier if you use virtual environments to compartmentalize your code. That way you specify which python version to use in your project only once (at the beginning) and then you can configure pip to always install packages for that version.

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.