python - ImportError: No module named pip after running chmod -


i had pip installed , installed few packages successfuly it. after running following commands. error saying no module named pip:

sudo chmod 666 /library/python/2.7/site-packages/ pip install --upgrade git+http://git@github.com/sympy/sympy.git traceback (most recent call last):   file "/usr/local/bin/pip", line 7, in <module>     pip import main importerror: no module named pip 

err... why did run chmod?

the issue here 666 bad directories. permission bits, executable bit, has different meaning directories: in order go directory, need have executable bit set. see, example, this question or this one. try running cd /library/python/2.7/site-packages/, , you'll see problem.

so while trying make directory read-write everyone, made no 1 can access it.

running chmod +x /library/python/2.7/site-packages/ fix this: +x permission sets executable bit on directories (and files have +x).

beyond this, however, want in /library read-write everyone? , have considered (from directory structure i'm assuming os x) using other apple-provided python, has problems package installation, etc? use homebrew version.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -