I have started getting this error for a few modules in python after I 'brew installed python' on my OS X El Capitan. I know that Mac comes with python 2.7 but due to some issues I had to install python explicitly using brew. Now I get this error.
~/Desktop ⌚ 10:57:29
$ python f.py
Traceback (most recent call last):
File "f.py", line 1, in <module>
import youtube_dl
ImportError: No module named youtube_dl
~/Desktop ⌚ 10:57:30
$ pip install youtube_dl
Requirement already satisfied (use --upgrade to upgrade): youtube_dl in /usr/local/lib/python2.7/site-packages