1

I'm a beginner with both mac & python and kinda messed up python installations in order to install pip.

Here is the point where i am stuck right now:

I've 3 versions of python installed - (i) pre-installed by mac OS (ii) python 3.5.1 installation from python.org (iii) python 2.7 installation by home-brew

pip was not working, till I uninstalled the brew version by this command brew uninstall python

now pip is showing command options but not able to install packages.

Here is the screenshot of errors I'm getting, after I gave command pip install requests :

error screenshot

I checked earlier links on stack overflow here- bad python install & here- uninstalling python2.7 but can't resolve it.

guys i know i overdid while installing, but it's because pip was not getting installed. thanks a lot for helping me out !!

best

Community
  • 1
  • 1
lawsome
  • 165
  • 2
  • 8
  • This isn't what you're asking about, but I highly recommend using `virtualenv` before installing packages with `pip`. – davejagoda Dec 08 '15 at 15:27
  • specify which version of pip to use for each version of pyhton ie. pip2 install. first install each version of pip for each version of python. –  Dec 08 '15 at 15:29

2 Answers2

1

try this instead:

sudo pip install requests
davejagoda
  • 2,420
  • 1
  • 20
  • 27
  • dave thanks, it worked man. It worked for preinstalled python on mac, i checked in python shell by importing. As suggested here, I 've to install pip again for python 3.5. – lawsome Dec 08 '15 at 15:59
  • @lawsome great news. Please do check out `virtualenv`: http://virtualenv.readthedocs.org/en/latest/ – davejagoda Dec 08 '15 at 16:07
1

If you are trying to install request for your python 3.5 installation, try using pip3 install requests

using pip will use the OSX default installation instead of installing it for 3.5

Adam Fatka
  • 29
  • 4