I am trying to run coursera-dl from the command line on OS X Mavericks.
The following is the output from the console:
$ coursera-dl
Traceback (most recent call last):
File "/usr/local/bin/coursera-dl", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: six
I installed it using:
sudo pip install coursera-dl
For the record I have installed the required packages and python | coursera-dl are on my path.
Can anyone make a suggestion, for what I should do?
P.S. First question on Stackoverflow!
Solved! Here is what fixed it and the source I obtained the solution from.
$ curl -O http://python-distribute.org/distribute_setup.py
$ sudo python distribute_setup.py
$ sudo rm distribute_setup.py
$ sudo easy_install pip
$ sudo pip install virtualenv
$ sudo pip install virtualenvwrapper
Found here - http://dev.imanol.me/post/65244552920/python-on-osx-mavericks
I think this proves that with enough googling you can fix a lot of problems. Though I don't know why this worked, it has.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With