

I granted read permission on the files and search permission on the subdirectories for group and other like so: $ sudo chmod -R go+rX /usr/local/lib/python2.7/dist-packagesĪnd that resolved the problem for me: $ python Type "help", "copyright", "credits" or "license" for more information. This means that only the root user could access them, and so any user that tried to run a Python script that used any of these modules got an import error: $ python I noticed that all of the subdirectories and files under /usr/local/lib/python2.7/dist-packages/ had no read or write permission for group and other, and they were owned by root.

I figured all pip installs would be correctly linked?

Then installed homebrew and then installed python 2.7.3 through homebrew (2.7.3 is now currently running on my machine) # Ensure user-installed binaries take precedenceĮxport PATH=/usr/local/share/python:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin I don't understand why this is happening as i edited my bash_profile with the following # Set architecture flags Pip installs but module is not found Why I can't import beautifulsoup on mac using python 2.7 after installing it by using pip and/or easy_install?īut niether of them are in the same situation as I am. How do I set the path so that python also looks there as well as core directory? Notice how its in the site-packages directory in the usr/local/lib.Īll of my pip installs are being installed in that directory but python does not seem to be picking them up when i try importing them. Requirement already satisfied (use -upgrade to upgrade): feedparser in /usr/local/lib/python2.7/site-packages Then I tried installing feedparser $ pip install feedparser My python version has been upgraded to 2.7.3 btw since I installed it using homebrew as mentioned in the tutorial. Python seems to be importing this just fine. I assumed that this was already present and checked it. Requirement already satisfied (use -upgrade to upgrade): pySerial in /Library/Python/2.7/site-packages I used the following commands to install pySerial and feedparser $ pip install pySerial I followed this tutorial till I installed pip. I followed the following tutorial so that I could upgrade to python 2.7.3 and then use the above mentioned modules. I'm a newbie and I needed the pySerial and feedparser module for my projects.
