Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install Pip Packages in El Capitan (10.11)

Okay, so I have brew, and I've brew reinstalled python since El Capitan.

MacBook-Pro-2:decipher Alex$ which python
/usr/local/bin/python
MacBook-Pro-2:decipher Alex$ whereis python
/usr/bin/python

I have two pythons. That's all well and good. Brew doctor is clean, except for some Unbrewed header files were found in /usr/local/include, none of which seem related to Python. Short of virtualenv, is there any way to install packages anymore? I feel like I might be missing something.

Just like this guy I was trying to get IPython. I don't really need it, so I gave up the other day. Now I need Pylint. If I try to install it with pip:

IOError: [Errno 13] Permission denied: '/lib/python2.7/site-packages/logilab_common-1.1.0-py2.7-nspkg.pth'

Does anyone know how to point pip towards another instance of python on my system, or do something else so I can have the old behavior back? Please?

-- EDITS --

Suggested was the idea of using /usr/local/bin/pip to install ipython. This is the output. I can't figure out how to use ipython still.

MacBook-Pro-2:MNIST Alex$ /usr/local/bin/pip install ipython[all]

Requirement already satisfied (use --upgrade to upgrade): ipython[all] in /Library/Python/2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): traitlets in /usr/local/bin (from ipython[all])
Requirement already satisfied (use --upgrade to upgrade): pickleshare in /usr/local/bin (from ipython[all])
Requirement already satisfied (use --upgrade to upgrade): simplegeneric>0.8 in /usr/local/bin (from ipython[all])
... the rest of the requirements are all satisfied in usr/local/bin
like image 891
Alex Lenail Avatar asked Nov 10 '22 01:11

Alex Lenail


1 Answers

I had trouble too with El Capitan. I did these things and it worked:

1) Install Homebrew

2) Install Python 3 with Homebrew

3) In terminal enter these installs (in this order)

    $ pip3 install pyobjc-core
    $ pip3 install pyobjc
    $ pip3 install pillow
    $ pip3 install pyautogui
like image 121
Yvette Graveline Avatar answered Nov 15 '22 05:11

Yvette Graveline