0

I have installed python3 on Mac and I am trying to install pip.

While installing pip with command sudo easy_install pip it installs the pip for python 2.x which by default comes with Mac.

Is there any way I can install pip for python3?

Also, is it necessary to keep the older version of python installed as well?

3
  • 1
    You have not even googled it, right? Commented Jan 4, 2017 at 20:33
  • 2
    You may already have pip if you installed python >=3.4. Try using the command pip3. Commented Jan 4, 2017 at 20:35
  • Worked for me Greg. Thanks Commented Jan 4, 2017 at 20:39

1 Answer 1

1

You'll have to specify the Python 3 version of easy_install. The easiest way to do this is to give its full path on the command line. It should be in the executable directory of the Python 3 installation you did (i.e. the same directory as the Python 3 interpreter itself).

You should not remove the system-installed Python 2 in an attempt to get easy_install to refer to Python 3, because the operating system relies on that version of Python being installed.

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.